]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/uapi: Stop leaking kconfig references to userspace
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 14 Jan 2026 07:28:16 +0000 (08:28 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 30 Jan 2026 15:46:17 +0000 (16:46 +0100)
commite356da60144bcd06bf2880999f67a6415a7499d5
tree3cf9ccf46fdf7a6450463d303498b3a3ca4e0a6d
parent9b21aa9f038184aa49f894e663957933507718d1
x86/uapi: Stop leaking kconfig references to userspace

UAPI headers are not supposed to leak references to kconfig symbols.
These won't be set when building userspace. Hide the kconfig reference
behind 'if defined(__KERNEL__)', so it will be stripped by
headers_install.sh. The result for userspace will be the same, but the
exceptions in headers_install.sh can also be removed.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/x86/include/uapi/asm/auxvec.h
scripts/headers_install.sh