Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Thomas Weißschuh and committed by
Nathan Chancellor
24b1bd64 3788d69d

+2 -3
+2 -3
usr/include/headers_check.pl
··· 98 98 if ($line =~ m/^\s*#\s*include\s+<asm\/types.h>/) { 99 99 $linux_asm_types = 1; 100 100 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; 104 103 } 105 104 } 106 105