diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-08-13 08:16:58 +0200 |
|---|---|---|
| committer | Nathan Chancellor <nathan@kernel.org> | 2025-08-13 14:00:34 -0700 |
| commit | 24b1bd64ee4030a306f74811c346db4042f4c98a (patch) | |
| tree | f3921208cd0d621c168ebb72cf31e866954a36a7 /usr/include | |
| parent | 3788d69db18d310afa9892642520fb9b47edf829 (diff) | |
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>
Diffstat (limited to 'usr/include')
| -rwxr-xr-x | usr/include/headers_check.pl | 5 |
1 files changed, 2 insertions, 3 deletions
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+<asm\/types.h>/) { $linux_asm_types = 1; printf STDERR "$filename:$lineno: " . - "include of <linux/types.h> is preferred over <asm/types.h>\n" - # Warn until headers are all fixed - #$ret = 1; + "include of <linux/types.h> is preferred over <asm/types.h>\n"; + $ret = 1; } } |
