Skip to content

Commit b70f12e

Browse files
committed
kbuild: verify asm-generic header list
In order to integrate the system call header generation with generating the asm-generic wrappers, restrict the generated headers to those that actually exist in include/asm-generic/. The path is already known, so add these as a dependency. The asm-generic/bugs.h header was removed in commit 61235b2 ("init: Remove check_bugs() leftovers"), which now causes a build failure, so drop it from the list. Signed-off-by: Arnd Bergmann <[email protected]>
1 parent ff96f5c commit b70f12e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

include/asm-generic/Kbuild

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ mandatory-y += archrandom.h
99
mandatory-y += barrier.h
1010
mandatory-y += bitops.h
1111
mandatory-y += bug.h
12-
mandatory-y += bugs.h
1312
mandatory-y += cacheflush.h
1413
mandatory-y += cfi.h
1514
mandatory-y += checksum.h

scripts/Makefile.asm-generic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ all: $(generic-y)
4646
$(if $(unwanted),$(call cmd,remove))
4747
@:
4848

49-
$(obj)/%.h:
49+
$(obj)/%.h: $(srctree)/$(generic)/%.h
5050
$(call cmd,wrap)
5151

5252
# Create output directory. Skip it if at least one old header exists

0 commit comments

Comments
 (0)