[PATCH] types: Drop definition of __EXPORTED_HEADERS__
From: Thomas Weißschuh
Date: Tue Dec 30 2025 - 02:14:06 EST
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@xxxxxxxxxxxxx>
---
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@xxxxxxxxxxxxx>