From: Thomas Weißschuh Date: Wed, 13 Aug 2025 06:16:58 +0000 (+0200) Subject: kbuild: uapi: upgrade warning on asm/types.h inclusion to error X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=24b1bd64ee4030a306f74811c346db4042f4c98a;p=users%2Fhch%2Fmisc.git kbuild: uapi: upgrade warning on asm/types.h inclusion to error No usages of '#include in the UAPI headers exist anymore. Make sure it stays this way. Add a semicolon to the end of the previous printf call to keep the syntax valid. Signed-off-by: Thomas Weißschuh Reviewed-by: Nicolas Schier Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-3-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor --- diff --git a/usr/include/headers_check.pl b/usr/include/headers_check.pl index 2b70bfa5558e..36307a137cc1 100755 --- a/usr/include/headers_check.pl +++ b/usr/include/headers_check.pl @@ -98,9 +98,8 @@ sub check_asm_types if ($line =~ m/^\s*#\s*include\s+/) { $linux_asm_types = 1; printf STDERR "$filename:$lineno: " . - "include of is preferred over \n" - # Warn until headers are all fixed - #$ret = 1; + "include of is preferred over \n"; + $ret = 1; } }