History

Merge tag 'kbuild-fixes-7.0-4' of git://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux

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

Linus Torvalds committed 7 months ago

Commit 9a9c8ce2 parents b42ed3b deb46052 files · +3 −2Browse files

Unified · Split

2 files
  1. scripts/Makefile.package +2 −1
  2. scripts/mod/modpost.c +1 −1
scripts/Makefile.package+2−1
@@ -195,7 +195,7 @@ tar%-pkg: linux-$(KERNELRELEASE)-$(ARCH).tar.% FORCE · 194 unmodified lines
195.tmp_modules_cpio: FORCE195.tmp_modules_cpio: FORCE
196 $(Q)$(MAKE) -f $(srctree)/Makefile196 $(Q)$(MAKE) -f $(srctree)/Makefile
197 $(Q)rm -rf $@197 $(Q)rm -rf $@
198 $(Q)$(MAKE) -f $(srctree)/Makefile INSTALL_MOD_PATH=$@ modules_install198 $(Q)$(MAKE) -f $(srctree)/Makefile INSTALL_MOD_PATH=$@/$(INSTALL_MOD_PATH) modules_install
199 199
200quiet_cmd_cpio = CPIO $@200quiet_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'
scripts/mod/modpost.c+1−1
@@ -56,7 +56,7 @@ static bool allow_missing_ns_imports; · 55 unmodified lines
56 56
57static bool error_occurred;57static bool error_occurred;
58 58
59static bool extra_warn;59static bool extra_warn __attribute__((unused));
60 60
61bool target_is_big_endian;61bool target_is_big_endian;
62bool host_is_big_endian;62bool host_is_big_endian;