From: Daniel Xu Date: Tue, 24 Aug 2021 02:43:46 +0000 (-0700) Subject: bpf: Add BTF_ID_LIST_GLOBAL_SINGLE macro X-Git-Tag: accepted/tizen/unified/20230118.172025~6527^2~22^2~7^2~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b07d00a15d6a96d1a36b6a284c4fd5f2e2fa383;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Alexei Starovoitov Link: https://lore.kernel.org/bpf/a867a97517df42fd3953eeb5454402b57e74538f.1629772842.git.dxu@dxuuu.xyz --- diff --git a/include/linux/btf_ids.h b/include/linux/btf_ids.h index bed4b99..6d13950 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.