Skip to content

Commit de2addf

Browse files
ijcsravnborg
authored andcommitted
kbuild: do not include arch/<ARCH>/include/asm in find-sources twice.
Architectures which have moved their includes to arch/<ARCH>/include now list the headers twice in the source listing used by "make cscope" and friends, causing those tools to list symbols twice. Skipping these files in the ALLSOURCE_ARCHS pass rather than removing the ALLINCLUDE_ARCHS pass preserves the semantics of the later. Signed-off-by: Ian Campbell <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]>
1 parent f03b283 commit de2addf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1436,7 +1436,8 @@ ALLSOURCE_ARCHS := $(SRCARCH)
14361436
define find-sources
14371437
( for arch in $(ALLSOURCE_ARCHS) ; do \
14381438
find $(__srctree)arch/$${arch} $(RCS_FIND_IGNORE) \
1439-
-name $1 -print; \
1439+
-wholename $(__srctree)arch/$${arch}/include/asm -type d -prune \
1440+
-o -name $1 -print; \
14401441
done ; \
14411442
find $(__srctree)security/selinux/include $(RCS_FIND_IGNORE) \
14421443
-name $1 -print; \

0 commit comments

Comments
 (0)