[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <a867a97517df42fd3953eeb5454402b57e74538f.1629772842.git.dxu@dxuuu.xyz>
Date: Mon, 23 Aug 2021 19:43:46 -0700
From: Daniel Xu <dxu@...uu.xyz>
To: bpf@...r.kernel.org, yhs@...com, andriin@...com
Cc: Daniel Xu <dxu@...uu.xyz>, kernel-team@...com,
linux-kernel@...r.kernel.org
Subject: [PATCH bpf-next v2 1/5] bpf: Add BTF_ID_LIST_GLOBAL_SINGLE macro
Same as BTF_ID_LIST_SINGLE macro except defines a global ID.
Signed-off-by: Daniel Xu <dxu@...uu.xyz>
---
include/linux/btf_ids.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h
index bed4b9964581..6d1395030616 100644
--- a/include/linux/btf_ids.h
+++ b/include/linux/btf_ids.h
@@ -82,6 +82,9 @@ __BTF_ID_LIST(name, globl)
#define BTF_ID_LIST_SINGLE(name, prefix, typename) \
BTF_ID_LIST(name) \
BTF_ID(prefix, typename)
+#define BTF_ID_LIST_GLOBAL_SINGLE(name, prefix, typename) \
+ BTF_ID_LIST_GLOBAL(name) \
+ BTF_ID(prefix, typename)
/*
* The BTF_ID_UNUSED macro defines 4 zero bytes.
--
2.33.0
Powered by blists - more mailing lists