[PATCH v2 5/5] kbuild: uapi: upgrade check_declarations() warning to error

Thomas Weißschuh posted 5 patches 4 months ago
[PATCH v2 5/5] kbuild: uapi: upgrade check_declarations() warning to error
Posted by Thomas Weißschuh 4 months ago
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>
---
 usr/include/headers_check.pl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl
index 36349b21cef5d55241b68ca24dabe6a321b7ce27..21c2fb9520e6af2d6ebf2decce69f6eea64efd88 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;
 	}
 }
 

-- 
2.50.1