]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
types: drop definition of __EXPORTED_HEADERS__
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Tue, 30 Dec 2025 07:13:15 +0000 (08:13 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 27 Jan 2026 03:07:10 +0000 (19:07 -0800)
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.

Link: https://lkml.kernel.org/r/20251230-exported-headers-types-h-v1-1-947fc606f3d8@linutronix.de
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/types.h

index d4437e9c452c5a158a9ae84e65ae8c61c2493918..0cbb684eec5c3d9671f844ef1902b753d363ea2e 100644 (file)
@@ -2,7 +2,6 @@
 #ifndef _LINUX_TYPES_H
 #define _LINUX_TYPES_H
 
-#define __EXPORTED_HEADERS__
 #include <uapi/linux/types.h>
 
 #ifndef __ASSEMBLY__