Pull Kbuild fixes from Nathan Chancellor: - Make modules-cpio-pkg respect INSTALL_MOD_PATH so that it can be used with distribution initramfs files that have a merged /usr, such as Fedora - Silence an instance of -Wunused-but-set-global, a strengthening of -Wunused-but-set-variable in tip of tree Clang, in modpost, as the variable for extra warnings is currently unused * tag 'kbuild-fixes-7.0-4' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux: modpost: Declare extra_warn with unused attribute kbuild: modules-cpio-pkg: Respect INSTALL_MOD_PATH
Unified · Split
| @@ -195,7 +195,7 @@ tar%-pkg: linux-$(KERNELRELEASE)-$(ARCH).tar.% FORCE · 194 unmodified lines | |||
| 195 | .tmp_modules_cpio: FORCE | 195 | .tmp_modules_cpio: FORCE |
| 196 | $(Q)$(MAKE) -f $(srctree)/Makefile | 196 | $(Q)$(MAKE) -f $(srctree)/Makefile |
| 197 | $(Q)rm -rf $@ | 197 | $(Q)rm -rf $@ |
| 198 | $(Q)$(MAKE) -f $(srctree)/Makefile INSTALL_MOD_PATH=$@ modules_install | 198 | $(Q)$(MAKE) -f $(srctree)/Makefile INSTALL_MOD_PATH=$@/$(INSTALL_MOD_PATH) modules_install |
| 199 | 199 | ||
| 200 | quiet_cmd_cpio = CPIO $@ | 200 | quiet_cmd_cpio = CPIO $@ |
| 201 | cmd_cpio = $(CONFIG_SHELL) $(srctree)/usr/gen_initramfs.sh -o $@ $< | 201 | cmd_cpio = $(CONFIG_SHELL) $(srctree)/usr/gen_initramfs.sh -o $@ $< |
| @@ -264,6 +264,7 @@ help: · 62 unmodified lines | |||
| 264 | @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball' | 264 | @echo ' tarxz-pkg - Build the kernel as a xz compressed tarball' |
| 265 | @echo ' tarzst-pkg - Build the kernel as a zstd compressed tarball' | 265 | @echo ' tarzst-pkg - Build the kernel as a zstd compressed tarball' |
| 266 | @echo ' modules-cpio-pkg - Build the kernel modules as cpio archive' | 266 | @echo ' modules-cpio-pkg - Build the kernel modules as cpio archive' |
| 267 | @echo ' (uses INSTALL_MOD_PATH inside the archive)' | ||
| 267 | @echo ' perf-tar-src-pkg - Build the perf source tarball with no compression' | 268 | @echo ' perf-tar-src-pkg - Build the perf source tarball with no compression' |
| 268 | @echo ' perf-targz-src-pkg - Build the perf source tarball with gzip compression' | 269 | @echo ' perf-targz-src-pkg - Build the perf source tarball with gzip compression' |
| 269 | @echo ' perf-tarbz2-src-pkg - Build the perf source tarball with bz2 compression' | 270 | @echo ' perf-tarbz2-src-pkg - Build the perf source tarball with bz2 compression' |
| @@ -56,7 +56,7 @@ static bool allow_missing_ns_imports; · 55 unmodified lines | |||
| 56 | 56 | ||
| 57 | static bool error_occurred; | 57 | static bool error_occurred; |
| 58 | 58 | ||
| 59 | static bool extra_warn; | 59 | static bool extra_warn __attribute__((unused)); |
| 60 | 60 | ||
| 61 | bool target_is_big_endian; | 61 | bool target_is_big_endian; |
| 62 | bool host_is_big_endian; | 62 | bool host_is_big_endian; |