Skip to content

Commit 94c0961

Browse files
committed
compiler_types: add comment on __BINDGEN__
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent c5ce2c4 commit 94c0961

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/compiler_types.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
#ifndef __ASSEMBLY__
66

7+
/*
8+
* Skipped when running bindgen due to a libclang issue;
9+
* see https://github.com/rust-lang/rust-bindgen/issues/2244.
10+
*/
711
#if defined(CONFIG_DEBUG_INFO_BTF) && defined(CONFIG_PAHOLE_HAS_BTF_TAG) && \
812
__has_attribute(btf_type_tag) && !defined(__BINDGEN__)
913
# define BTF_TYPE_TAG(value) __attribute__((btf_type_tag(#value)))

0 commit comments

Comments
 (0)