]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
kbuild: verify asm-generic header list
authorArnd Bergmann <arnd@arndb.de>
Fri, 26 Apr 2024 06:44:51 +0000 (08:44 +0200)
committerArnd Bergmann <arnd@arndb.de>
Wed, 10 Jul 2024 12:23:38 +0000 (14:23 +0200)
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 61235b24b9cb ("init:
Remove check_bugs() leftovers"), which now causes a build failure, so
drop it from the list.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/Kbuild
scripts/Makefile.asm-generic

index b20fa25a7e8d8e21a960e589f780eb768e5c186e..df7ed81c45890d5f58d8a5f0b83d6c1e5c4e2792 100644 (file)
@@ -9,7 +9,6 @@ mandatory-y += archrandom.h
 mandatory-y += barrier.h
 mandatory-y += bitops.h
 mandatory-y += bug.h
-mandatory-y += bugs.h
 mandatory-y += cacheflush.h
 mandatory-y += cfi.h
 mandatory-y += checksum.h
index 1486abf34c7c9063fa9ffc0a417ddb64f5b346a1..69434908930e6e34f36e20488950d08996a4a264 100644 (file)
@@ -46,7 +46,7 @@ all: $(generic-y)
        $(if $(unwanted),$(call cmd,remove))
        @:
 
-$(obj)/%.h:
+$(obj)/%.h: $(srctree)/$(generic)/%.h
        $(call cmd,wrap)
 
 # Create output directory. Skip it if at least one old header exists