aboutsummaryrefslogtreecommitdiffstats
path: root/usr
diff options
authorThomas Weißschuh <linux@weissschuh.net>2026-03-16 17:51:59 +0100
committerNicolas Schier <nsc@kernel.org>2026-03-25 13:24:40 +0100
commitcf822413093e4fdf17ce12f10f3983b1d5f8b659 (patch)
tree9d902d1c4887e153508986e1680c1045735255ff /usr
parent55d68ec5b9ba004764acaa3291871513102b4fd4 (diff)
downloadlinux-next-history-cf822413093e4fdf17ce12f10f3983b1d5f8b659.tar.gz
kbuild: uapi: move all include path flags together
The argument to add the root of the UAPI header tree to the include path is separated from the other arguments concerning the include path. Move all include path arguments together for more consistency and balanced line lengths. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Link: https://patch.msgid.link/20260316-kbuild-uapi-c-v2-2-35d6d0ed863f@weissschuh.net Signed-off-by: Nicolas Schier <nsc@kernel.org>
Diffstat (limited to 'usr')
-rw-r--r--usr/include/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/include/Makefile b/usr/include/Makefile
index 0b1c9a4b04773..74f5ba24bb296 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -8,7 +8,7 @@
# We cannot go as far as adding -Wpedantic since it emits too many warnings.
UAPI_CFLAGS := -std=c90 -Werror=implicit-function-declaration
-override c_flags = $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I $(obj)
+override c_flags = $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfile)
# The following are excluded for now because they fail to build.
#
@@ -141,7 +141,7 @@ target-libc = $(filter $(uses-libc), $*.h)
target-can-compile = $(filter-out $(no-header-test), $*.h)
hdrtest-flags = -fsyntax-only -Werror \
- -nostdinc $(if $(target-libc), -I $(srctree)/usr/dummy-include)
+ -nostdinc -I $(obj) $(if $(target-libc), -I $(srctree)/usr/dummy-include)
# Include the header twice to detect missing include guard.
quiet_cmd_hdrtest = HDRTEST $<