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: 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>

authored by

Thomas Weißschuh and committed by
Nicolas Schier
cf822413 55d68ec5

+2 -2
+2 -2
usr/include/Makefile
··· 8 8 # We cannot go as far as adding -Wpedantic since it emits too many warnings. 9 9 UAPI_CFLAGS := -std=c90 -Werror=implicit-function-declaration 10 10 11 - override c_flags = $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) -I $(obj) 11 + override c_flags = $(KBUILD_USERCFLAGS) $(UAPI_CFLAGS) -Wp,-MMD,$(depfile) 12 12 13 13 # The following are excluded for now because they fail to build. 14 14 # ··· 141 141 target-can-compile = $(filter-out $(no-header-test), $*.h) 142 142 143 143 hdrtest-flags = -fsyntax-only -Werror \ 144 - -nostdinc $(if $(target-libc), -I $(srctree)/usr/dummy-include) 144 + -nostdinc -I $(obj) $(if $(target-libc), -I $(srctree)/usr/dummy-include) 145 145 146 146 # Include the header twice to detect missing include guard. 147 147 quiet_cmd_hdrtest = HDRTEST $<