Unverified Commit 24b1bd64 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Nathan Chancellor
Browse files

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: default avatarThomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: default avatarNicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-3-8a7921ca3a03@linutronix.de


Signed-off-by: default avatarNathan Chancellor <nathan@kernel.org>
parent 3788d69d
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
	}
}