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.

kbuild: uapi: Drop check_config()

headers_install.sh already tests for CONFIG symbols. It does so in a
more comprehensive way, by only checking for references in code and
also running even if CONFIG_UAPI_HEADER_TEST is disabled.
And check_config() has been disabled any case.

Drop the pointless check.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20251230-uapi-check_config-v1-1-00ecec109f39@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Thomas Weißschuh and committed by
Nathan Chancellor
1b5e068d f8e05c10

-8
-8
usr/include/headers_check.pl
··· 40 40 &check_include(); 41 41 &check_asm_types(); 42 42 &check_declarations(); 43 - # Dropped for now. Too much noise &check_config(); 44 43 } 45 44 close $fh; 46 45 } ··· 73 74 "userspace cannot reference function or " . 74 75 "variable defined in the kernel\n"; 75 76 $ret = 1; 76 - } 77 - } 78 - 79 - sub check_config 80 - { 81 - if ($line =~ m/[^a-zA-Z0-9_]+CONFIG_([a-zA-Z0-9_]+)[^a-zA-Z0-9_]/) { 82 - printf STDERR "$filename:$lineno: leaks CONFIG_$1 to userspace where it is not valid\n"; 83 77 } 84 78 } 85 79