From: Thomas Weißschuh Date: Wed, 13 Aug 2025 06:17:00 +0000 (+0200) Subject: kbuild: uapi: upgrade check_declarations() warning to error X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b8d762c9830538c743066cbfb1f8c8a40f8e9d58;p=users%2Fhch%2Fmisc.git kbuild: uapi: upgrade check_declarations() warning to error No problematic declarations exist anymore. Make sure it stays this way. Signed-off-by: Thomas Weißschuh Reviewed-by: Nicolas Schier Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-5-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor --- diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl index 36349b21cef5..21c2fb9520e6 100755 --- a/usr/include/headers_check.pl +++ b/usr/include/headers_check.pl @@ -74,6 +74,7 @@ sub check_declarations printf STDERR "$filename:$lineno: " . "userspace cannot reference function or " . "variable defined in the kernel\n"; + $ret = 1; } }