[PATCH] compiler_types: drop the Rust bindgen workaround for BTF_TYPE_TAG()
From: Thomas Weißschuh
Date: Sat Oct 17 2026 - 17:55:24 EST
The referenced bug was fixed back in bindgen v0.66.0.
As the current minimal support version of bindgen in the kernel is
v0.71.1 the workaround is not necessary anymore.
Drop the workaround.
Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
---
include/linux/compiler_types.h | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/include/linux/compiler_types.h b/include/linux/compiler_types.h
index c5921f139007..cdae5823c915 100644
--- a/include/linux/compiler_types.h
+++ b/include/linux/compiler_types.h
@@ -30,12 +30,8 @@
# define auto __auto_type
#endif
-/*
- * Skipped when running bindgen due to a libclang issue;
- * see https://github.com/rust-lang/rust-bindgen/issues/2244.
- */
#if defined(CONFIG_DEBUG_INFO_BTF) && defined(CONFIG_PAHOLE_HAS_BTF_TAG) && \
- __has_attribute(btf_type_tag) && !defined(__BINDGEN__)
+ __has_attribute(btf_type_tag)
# define BTF_TYPE_TAG(value) __attribute__((btf_type_tag(#value)))
#else
# define BTF_TYPE_TAG(value) /* nothing */
---
base-commit: 3132a951a7e4ec2e18bc314877137deee96ab83e
change-id: 20261014-rust-bindgen-workaround-a4086a8c87e3
Best regards,
--
Thomas Weißschuh <linux@xxxxxxxxxxxxxx>