Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

types: drop definition of __EXPORTED_HEADERS__

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>

authored by

Thomas Weißschuh and committed by
Andrew Morton
e896c44a 998be0a4

-1
-1
include/linux/types.h
··· 2 2 #ifndef _LINUX_TYPES_H 3 3 #define _LINUX_TYPES_H 4 4 5 - #define __EXPORTED_HEADERS__ 6 5 #include <uapi/linux/types.h> 7 6 8 7 #ifndef __ASSEMBLY__