Merge tag 'kbuild-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy...
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Feb 2021 18:17:31 +0000 (10:17 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 25 Feb 2021 18:17:31 +0000 (10:17 -0800)
Pull Kbuild updates from Masahiro Yamada:

 - Fix false-positive build warnings for ARCH=ia64 builds

 - Optimize dictionary size for module compression with xz

 - Check the compiler and linker versions in Kconfig

 - Fix misuse of extra-y

 - Support DWARF v5 debug info

 - Clamp SUBLEVEL to 255 because stable releases 4.4.x and 4.9.x
   exceeded the limit

 - Add generic syscall{tbl,hdr}.sh for cleanups across arches

 - Minor cleanups of genksyms

 - Minor cleanups of Kconfig

* tag 'kbuild-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild: (38 commits)
  initramfs: Remove redundant dependency of RD_ZSTD on BLK_DEV_INITRD
  kbuild: remove deprecated 'always' and 'hostprogs-y/m'
  kbuild: parse C= and M= before changing the working directory
  kbuild: reuse this-makefile to define abs_srctree
  kconfig: unify rule of config, menuconfig, nconfig, gconfig, xconfig
  kconfig: omit --oldaskconfig option for 'make config'
  kconfig: fix 'invalid option' for help option
  kconfig: remove dead code in conf_askvalue()
  kconfig: clean up nested if-conditionals in check_conf()
  kconfig: Remove duplicate call to sym_get_string_value()
  Makefile: Remove # characters from compiler string
  Makefile: reuse CC_VERSION_TEXT
  kbuild: check the minimum linker version in Kconfig
  kbuild: remove ld-version macro
  scripts: add generic syscallhdr.sh
  scripts: add generic syscalltbl.sh
  arch: syscalls: remove $(srctree)/ prefix from syscall tables
  arch: syscalls: add missing FORCE and fix 'targets' to make if_changed work
  gen_compile_commands: prune some directories
  kbuild: simplify access to the kernel's version
  ...

21 files changed:
1  2 
Documentation/devicetree/bindings/Makefile
Documentation/kbuild/makefiles.rst
MAINTAINERS
Makefile
arch/arm64/Kconfig
arch/ia64/Makefile
arch/ia64/kernel/crash.c
arch/ia64/kernel/efi.c
arch/ia64/kernel/mca.c
arch/mips/kernel/syscalls/Makefile
arch/mips/loongson64/Platform
arch/powerpc/Makefile
drivers/gpu/drm/i915/Makefile
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/asm-generic/vmlinux.lds.h
include/linux/usb/composite.h
init/Kconfig
kernel/sys.c
lib/Kconfig.debug
scripts/Makefile.build
scripts/Makefile.lib

Simple merge
diff --cc MAINTAINERS
Simple merge
diff --cc Makefile
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index a1ce8b7dbcfaf8c8b4ad3e8cec9d41a56d8b4a1f,ed22b711ccb78c4ab6680a3ac972752c17d15398..51f8b805f2ed480777248cca4212d100529b2cdb
@@@ -44,17 -44,17 +44,17 @@@ $(uapi)/unistd_o32.h: $(syscallo32) $(s
  
  sysnr_pfx_unistd_nr_n32 := N32
  sysnr_offset_unistd_nr_n32 := 6000
- $(kapi)/unistd_nr_n32.h: $(syscalln32) $(sysnr)
 -$(uapi)/unistd_nr_n32.h: $(syscalln32) $(sysnr) FORCE
++$(kapi)/unistd_nr_n32.h: $(syscalln32) $(sysnr) FORCE
        $(call if_changed,sysnr)
  
  sysnr_pfx_unistd_nr_n64 := 64
  sysnr_offset_unistd_nr_n64 := 5000
- $(kapi)/unistd_nr_n64.h: $(syscalln64) $(sysnr)
 -$(uapi)/unistd_nr_n64.h: $(syscalln64) $(sysnr) FORCE
++$(kapi)/unistd_nr_n64.h: $(syscalln64) $(sysnr) FORCE
        $(call if_changed,sysnr)
  
  sysnr_pfx_unistd_nr_o32 := O32
  sysnr_offset_unistd_nr_o32 := 4000
- $(kapi)/unistd_nr_o32.h: $(syscallo32) $(sysnr)
 -$(uapi)/unistd_nr_o32.h: $(syscallo32) $(sysnr) FORCE
++$(kapi)/unistd_nr_o32.h: $(syscallo32) $(sysnr) FORCE
        $(call if_changed,sysnr)
  
  systbl_abi_syscall_table_32_o32 := 32_o32
@@@ -83,14 -86,12 +83,15 @@@ uapisyshdr-y               += unistd_n32.h                 
  kapisyshdr-y          += syscall_table_32_o32.h       \
                           syscall_table_64_n32.h       \
                           syscall_table_64_n64.h       \
 -                         syscall_table_64_o32.h
 +                         syscall_table_64_o32.h       \
 +                         unistd_nr_n32.h              \
 +                         unistd_nr_n64.h              \
 +                         unistd_nr_o32.h
  
- targets       += $(uapisyshdr-y) $(kapisyshdr-y)
+ uapisyshdr-y  := $(addprefix $(uapi)/, $(uapisyshdr-y))
+ kapisyshdr-y  := $(addprefix $(kapi)/, $(kapisyshdr-y))
+ targets               += $(addprefix ../../../../, $(uapisyshdr-y) $(kapisyshdr-y))
  
  PHONY += all
- all: $(addprefix $(uapi)/,$(uapisyshdr-y))
- all: $(addprefix $(kapi)/,$(kapisyshdr-y))
+ all: $(uapisyshdr-y) $(kapisyshdr-y)
        @:
Simple merge
Simple merge
index 32bd1fdffffeca6f7b4a884e347778648fd3add2,938221894d0c77e1cf034a20350583384c0d6215..2ae471518d9a3e8e9f01548dc0df8b9eba8c184e
@@@ -296,9 -284,17 +296,9 @@@ obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt
  
  # exclude some broken headers from the test coverage
  no-header-test := \
 -      display/intel_vbt_defs.h \
 -      gvt/execlist.h \
 -      gvt/fb_decoder.h \
 -      gvt/gtt.h \
 -      gvt/gvt.h \
 -      gvt/interrupt.h \
 -      gvt/mmio_context.h \
 -      gvt/mpt.h \
 -      gvt/scheduler.h
 +      display/intel_vbt_defs.h
  
extra-$(CONFIG_DRM_I915_WERROR) += \
always-$(CONFIG_DRM_I915_WERROR) += \
        $(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
                $(shell cd $(srctree)/$(src) && find * -name '*.h')))
  
Simple merge
Simple merge
diff --cc init/Kconfig
Simple merge
diff --cc kernel/sys.c
Simple merge
Simple merge
Simple merge
index 9f2531567c0e200860a7e008d1cb1cdf7cd9ce58,d5ec3864b31806e37f82ebff17e3a4cba3939f70..eee59184de640ab94e7d0f5512a5286f0839f11f
@@@ -81,14 -73,12 +73,14 @@@ always-y += $(userprogs-always-y) $(use
  
  # DTB
  # If CONFIG_OF_ALL_DTBS is enabled, all DT blobs are built
extra-y                               += $(dtb-y)
extra-$(CONFIG_OF_ALL_DTBS)   += $(dtb-)
always-y                      += $(dtb-y)
always-$(CONFIG_OF_ALL_DTBS)  += $(dtb-)
  
  ifneq ($(CHECK_DTBS),)
- extra-y += $(patsubst %.dtb,%.dt.yaml, $(dtb-y))
- extra-y += $(patsubst %.dtbo,%.dt.yaml, $(dtb-y))
- extra-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtb,%.dt.yaml, $(dtb-))
- extra-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtbo,%.dt.yaml, $(dtb-))
+ always-y += $(patsubst %.dtb,%.dt.yaml, $(dtb-y))
++always-y += $(patsubst %.dtbo,%.dt.yaml, $(dtb-y))
+ always-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtb,%.dt.yaml, $(dtb-))
++always-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtbo,%.dt.yaml, $(dtb-))
  endif
  
  # Add subdir path