]> git.baikalelectronics.ru Git - kernel.git/commit
compiler_types: Refactor the use of btf_type_tag attribute.
authorHao Luo <haoluo@google.com>
Thu, 10 Mar 2022 21:16:55 +0000 (13:16 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 11 Mar 2022 03:13:12 +0000 (19:13 -0800)
commit8e13fb151d0ae366f21214677725bb36d895f9f4
tree89bf4588f89c9790c78d34a77b8a28c06cf1fbb9
parentbafba88ed5604b3670f6493de0b2654a945fecf1
compiler_types: Refactor the use of btf_type_tag attribute.

Previous patches have introduced the compiler attribute btf_type_tag for
__user and __percpu. The availability of this attribute depends on
some CONFIGs and compiler support. This patch refactors the use
of btf_type_tag by introducing BTF_TYPE_TAG, which hides all the
dependencies.

No functional change.

Suggested-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Hao Luo <haoluo@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20220310211655.3173786-1-haoluo@google.com
include/linux/compiler_types.h