[PATCH] types: Drop definition of __EXPORTED_HEADERS__

Thomas Weißschuh posted 1 patch 1 month, 1 week ago
include/linux/types.h | 1 -
1 file changed, 1 deletion(-)
[PATCH] types: Drop definition of __EXPORTED_HEADERS__
Posted by Thomas Weißschuh 1 month, 1 week ago
This definition disarms the warning in uapi/linux/types.h about
including kernel headers from user space. However the warning is already
disarmed due to the fact that kernel code is built with -D__KERNEL__.

Drop the pointless definition.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
---
 include/linux/types.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/include/linux/types.h b/include/linux/types.h
index d4437e9c452c..0cbb684eec5c 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -2,7 +2,6 @@
 #ifndef _LINUX_TYPES_H
 #define _LINUX_TYPES_H
 
-#define __EXPORTED_HEADERS__
 #include <uapi/linux/types.h>
 
 #ifndef __ASSEMBLY__

---
base-commit: 8f0b4cce4481fb22653697cced8d0d04027cb1e8
change-id: 20251229-exported-headers-types-h-4a9d27e4663f

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh@linutronix.de>