Skip to content

Commit 24b1bd6

Browse files
t-8chnathanchance
authored andcommitted
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>
1 parent 3788d69 commit 24b1bd6

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

usr/include/headers_check.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,8 @@ sub check_asm_types
9898
if ($line =~ m/^\s*#\s*include\s+<asm\/types.h>/) {
9999
$linux_asm_types = 1;
100100
printf STDERR "$filename:$lineno: " .
101-
"include of <linux/types.h> is preferred over <asm/types.h>\n"
102-
# Warn until headers are all fixed
103-
#$ret = 1;
101+
"include of <linux/types.h> is preferred over <asm/types.h>\n";
102+
$ret = 1;
104103
}
105104
}
106105

0 commit comments

Comments
 (0)