Skip to content

Commit f8224f7

Browse files
committed
kbuild: remove duplicated arch/*/include/generated/uapi include path
Commit 90ac086 ("Makefile: include arch/*/include/generated/uapi before .../generated") introduced this for bisect'ability. The commit chose to promote arch/*/include/generated/uapi in the search path rather than cleaning stale headers. After all, we found that approach was not enough, and ended up with cleaning stale headers by commit cda2c65 ("kbuild: Remove stale asm-generic wrappers"). So, the extra search path is no longer needed because Kbuild invokes scripts/Makefile.asm-generic and remove stale headers before it starts descending. This commit is also reverting commit dc33db7 ("Kbuild: avoid duplicate include path") because we have no more duplicated path. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
1 parent d21832e commit f8224f7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,10 @@ USERINCLUDE := \
381381
# Needed to be compatible with the O= option
382382
LINUXINCLUDE := \
383383
-I$(srctree)/arch/$(hdr-arch)/include \
384-
-I$(objtree)/arch/$(hdr-arch)/include/generated/uapi \
385384
-I$(objtree)/arch/$(hdr-arch)/include/generated \
386385
$(if $(KBUILD_SRC), -I$(srctree)/include) \
387-
-I$(objtree)/include
388-
389-
LINUXINCLUDE += $(filter-out $(LINUXINCLUDE),$(USERINCLUDE))
386+
-I$(objtree)/include \
387+
$(USERINCLUDE)
390388

391389
KBUILD_CPPFLAGS := -D__KERNEL__
392390

0 commit comments

Comments
 (0)