]> www.infradead.org Git - users/hch/misc.git/commitdiff
kbuild: uapi: upgrade check_declarations() warning to error
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 13 Aug 2025 06:17:00 +0000 (08:17 +0200)
committerNathan Chancellor <nathan@kernel.org>
Wed, 13 Aug 2025 21:00:35 +0000 (14:00 -0700)
No problematic declarations exist anymore.

Make sure it stays this way.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-5-8a7921ca3a03@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
usr/include/headers_check.pl

index 36349b21cef5d55241b68ca24dabe6a321b7ce27..21c2fb9520e6af2d6ebf2decce69f6eea64efd88 100755 (executable)
@@ -74,6 +74,7 @@ sub check_declarations
                printf STDERR "$filename:$lineno: " .
                              "userspace cannot reference function or " .
                              "variable defined in the kernel\n";
+               $ret = 1;
        }
 }