kbuild: uapi: upgrade warning on asm/types.h inclusion to error

No usages of '#include <asm/types.h> 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 <thomas.weissschuh@linutronix.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-3-8a7921ca3a03@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
This commit is contained in:
Thomas Weißschuh 2025-08-13 08:16:58 +02:00 committed by Nathan Chancellor
parent 3788d69db1
commit 24b1bd64ee
No known key found for this signature in database
GPG Key ID: 1D6B269171C01A96
1 changed files with 2 additions and 3 deletions

View File

@ -98,9 +98,8 @@ sub check_asm_types
if ($line =~ m/^\s*#\s*include\s+<asm\/types.h>/) { if ($line =~ m/^\s*#\s*include\s+<asm\/types.h>/) {
$linux_asm_types = 1; $linux_asm_types = 1;
printf STDERR "$filename:$lineno: " . printf STDERR "$filename:$lineno: " .
"include of <linux/types.h> is preferred over <asm/types.h>\n" "include of <linux/types.h> is preferred over <asm/types.h>\n";
# Warn until headers are all fixed $ret = 1;
#$ret = 1;
} }
} }