]> Git Repo - linux.git/commitdiff
Merge tag 'kbuild-fixes-v5.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git...
authorLinus Torvalds <[email protected]>
Sun, 6 Dec 2020 18:31:39 +0000 (10:31 -0800)
committerLinus Torvalds <[email protected]>
Sun, 6 Dec 2020 18:31:39 +0000 (10:31 -0800)
Pull Kbuild fixes from Masahiro Yamada:

 - Move -Wcast-align to W=3, which tends to be false-positive and there
   is no tree-wide solution.

 - Pass -fmacro-prefix-map to KBUILD_CPPFLAGS because it is a
   preprocessor option and makes sense for .S files as well.

 - Disable -gdwarf-2 for Clang's integrated assembler to avoid warnings.

 - Disable --orphan-handling=warn for LLD 10.0.1 to avoid warnings.

 - Fix undesirable line breaks in *.mod files.

* tag 'kbuild-fixes-v5.10-2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
  kbuild: avoid split lines in .mod files
  kbuild: Disable CONFIG_LD_ORPHAN_WARN for ld.lld 10.0.1
  kbuild: Hoist '--orphan-handling' into Kconfig
  Kbuild: do not emit debug info for assembly with LLVM_IAS=1
  kbuild: use -fmacro-prefix-map for .S sources
  Makefile.extrawarn: move -Wcast-align to W=3

1  2 
MAINTAINERS
Makefile
arch/powerpc/Makefile
init/Kconfig

diff --combined MAINTAINERS
index ebe4829cdd4d8086b2096f7ad331047f83d99336,286ed8e6b924fc59781a7a49ca9cd1a051305312..1b29ee566ca39c3af992a5aa54c1aab45b509a4c
@@@ -1724,13 -1724,11 +1724,13 @@@ F:   arch/arm/mach-ep93xx/micro9.
  
  ARM/CORESIGHT FRAMEWORK AND DRIVERS
  M:    Mathieu Poirier <[email protected]>
 -R:    Suzuki K Poulose <[email protected]>
 +M:    Suzuki K Poulose <[email protected]>
  R:    Mike Leach <[email protected]>
 +R:    Leo Yan <[email protected]>
  L:    [email protected] (moderated for non-subscribers)
  L:    [email protected] (moderated for non-subscribers)
  S:    Maintained
 +T:    git git://git.kernel.org/pub/scm/linux/kernel/git/coresight/linux.git
  F:    Documentation/ABI/testing/sysfs-bus-coresight-devices-*
  F:    Documentation/devicetree/bindings/arm/coresight-cpu-debug.txt
  F:    Documentation/devicetree/bindings/arm/coresight-cti.yaml
@@@ -1997,6 -1995,7 +1997,6 @@@ N:      lpc18x
  
  ARM/LPC32XX SOC SUPPORT
  M:    Vladimir Zapolskiy <[email protected]>
 -M:    Sylvain Lemieux <[email protected]>
  L:    [email protected] (moderated for non-subscribers)
  S:    Maintained
  T:    git git://github.com/vzapolskiy/linux-lpc32xx.git
@@@ -3357,17 -3356,6 +3357,17 @@@ S:    Supporte
  F:    arch/x86/net/
  X:    arch/x86/net/bpf_jit_comp32.c
  
 +BPF LSM (Security Audit and Enforcement using BPF)
 +M:    KP Singh <[email protected]>
 +R:    Florent Revest <[email protected]>
 +R:    Brendan Jackman <[email protected]>
 +L:    [email protected]
 +S:    Maintained
 +F:    Documentation/bpf/bpf_lsm.rst
 +F:    include/linux/bpf_lsm.h
 +F:    kernel/bpf/bpf_lsm.c
 +F:    security/bpf/
 +
  BROADCOM B44 10/100 ETHERNET DRIVER
  M:    Michael Chan <[email protected]>
  L:    [email protected]
@@@ -3540,12 -3528,11 +3540,12 @@@ BROADCOM BRCM80211 IEEE802.11n WIRELES
  M:    Arend van Spriel <[email protected]>
  M:    Franky Lin <[email protected]>
  M:    Hante Meuleman <[email protected]>
 -M:    Chi-Hsien Lin <[email protected]>
 -M:    Wright Feng <[email protected]>
 +M:    Chi-hsien Lin <[email protected]>
 +M:    Wright Feng <[email protected]>
 +M:    Chung-hsien Hsu <[email protected]>
  L:    [email protected]
  L:    [email protected]
 -L:    brcm80211-dev-list@cypress.com
 +L:    SHA-cyfmac-dev-list@infineon.com
  S:    Supported
  F:    drivers/net/wireless/broadcom/brcm80211/
  
@@@ -4287,6 -4274,7 +4287,7 @@@ B:      https://github.com/ClangBuiltLinux/l
  C:    irc://chat.freenode.net/clangbuiltlinux
  F:    Documentation/kbuild/llvm.rst
  F:    scripts/clang-tools/
+ F:    scripts/lld-version.sh
  K:    \b(?i:clang|llvm)\b
  
  CLEANCACHE API
@@@ -9080,7 -9068,10 +9081,7 @@@ S:     Supporte
  F:    drivers/net/wireless/intel/iwlegacy/
  
  INTEL WIRELESS WIFI LINK (iwlwifi)
 -M:    Johannes Berg <[email protected]>
 -M:    Emmanuel Grumbach <[email protected]>
  M:    Luca Coelho <[email protected]>
 -M:    Intel Linux Wireless <[email protected]>
  L:    [email protected]
  S:    Supported
  W:    https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
@@@ -9656,7 -9647,6 +9657,7 @@@ F:      Documentation/virt/kvm/s390
  F:    arch/s390/include/asm/gmap.h
  F:    arch/s390/include/asm/kvm*
  F:    arch/s390/include/uapi/asm/kvm*
 +F:    arch/s390/kernel/uv.c
  F:    arch/s390/kvm/
  F:    arch/s390/mm/gmap.c
  F:    tools/testing/selftests/kvm/*/s390x/
@@@ -13172,9 -13162,7 +13173,9 @@@ M:   Jesper Dangaard Brouer <hawk@kernel.
  M:    Ilias Apalodimas <[email protected]>
  L:    [email protected]
  S:    Supported
 +F:    Documentation/networking/page_pool.rst
  F:    include/net/page_pool.h
 +F:    include/trace/events/page_pool.h
  F:    net/core/page_pool.c
  
  PANASONIC LAPTOP ACPI EXTRAS DRIVER
@@@ -14816,7 -14804,7 +14817,7 @@@ T:   git git://git.kernel.org/pub/scm/lin
  F:    drivers/net/wireless/realtek/rtlwifi/
  
  REALTEK WIRELESS DRIVER (rtw88)
 -M:    Yan-Hsuan Chuang <yhchuang@realtek.com>
 +M:    Yan-Hsuan Chuang <tony0620emma@gmail.com>
  L:    [email protected]
  S:    Maintained
  F:    drivers/net/wireless/realtek/rtw88/
@@@ -15789,8 -15777,9 +15790,8 @@@ F:   drivers/slimbus
  F:    include/linux/slimbus.h
  
  SFC NETWORK DRIVER
 -M:    Solarflare linux maintainers <[email protected]>
 -M:    Edward Cree <[email protected]>
 -M:    Martin Habets <[email protected]>
 +M:    Edward Cree <[email protected]>
 +M:    Martin Habets <[email protected]>
  L:    [email protected]
  S:    Supported
  F:    drivers/net/ethernet/sfc/
@@@ -19122,17 -19111,12 +19123,17 @@@ L:        [email protected]
  L:    [email protected]
  S:    Supported
  F:    include/net/xdp.h
 +F:    include/net/xdp_priv.h
  F:    include/trace/events/xdp.h
  F:    kernel/bpf/cpumap.c
  F:    kernel/bpf/devmap.c
  F:    net/core/xdp.c
 -N:    xdp
 -K:    xdp
 +F:    samples/bpf/xdp*
 +F:    tools/testing/selftests/bpf/*xdp*
 +F:    tools/testing/selftests/bpf/*/*xdp*
 +F:    drivers/net/ethernet/*/*/*/*/*xdp*
 +F:    drivers/net/ethernet/*/*/*xdp*
 +K:    (?:\b|_)xdp(?:\b|_)
  
  XDP SOCKETS (AF_XDP)
  M:    Björn Töpel <[email protected]>
@@@ -19141,12 -19125,9 +19142,12 @@@ R: Jonathan Lemon <jonathan.lemon@gmail
  L:    [email protected]
  L:    [email protected]
  S:    Maintained
 +F:    Documentation/networking/af_xdp.rst
  F:    include/net/xdp_sock*
  F:    include/net/xsk_buff_pool.h
  F:    include/uapi/linux/if_xdp.h
 +F:    include/uapi/linux/xdp_diag.h
 +F:    include/net/netns/xdp.h
  F:    net/xdp/
  F:    samples/bpf/xdpsock*
  F:    tools/lib/bpf/xsk*
diff --combined Makefile
index 43ecedeb3f0214f6adfcd0ba105928cd2b0f5334,8327725e5d7668a75c0a0226a71da902afe375eb..a2ded5029084d3f4d757305aca7d8ea0f697a351
+++ b/Makefile
@@@ -2,7 -2,7 +2,7 @@@
  VERSION = 5
  PATCHLEVEL = 10
  SUBLEVEL = 0
 -EXTRAVERSION = -rc5
 +EXTRAVERSION = -rc6
  NAME = Kleptomaniac Octopus
  
  # *DOCUMENTATION*
@@@ -433,6 -433,7 +433,6 @@@ NM         = llvm-n
  OBJCOPY               = llvm-objcopy
  OBJDUMP               = llvm-objdump
  READELF               = llvm-readelf
 -OBJSIZE               = llvm-size
  STRIP         = llvm-strip
  else
  CC            = $(CROSS_COMPILE)gcc
@@@ -442,6 -443,7 +442,6 @@@ NM         = $(CROSS_COMPILE)n
  OBJCOPY               = $(CROSS_COMPILE)objcopy
  OBJDUMP               = $(CROSS_COMPILE)objdump
  READELF               = $(CROSS_COMPILE)readelf
 -OBJSIZE               = $(CROSS_COMPILE)size
  STRIP         = $(CROSS_COMPILE)strip
  endif
  PAHOLE                = pahole
@@@ -507,7 -509,7 +507,7 @@@ KBUILD_LDFLAGS :
  CLANG_FLAGS :=
  
  export ARCH SRCARCH CONFIG_SHELL BASH HOSTCC KBUILD_HOSTCFLAGS CROSS_COMPILE LD CC
 -export CPP AR NM STRIP OBJCOPY OBJDUMP OBJSIZE READELF PAHOLE RESOLVE_BTFIDS LEX YACC AWK INSTALLKERNEL
 +export CPP AR NM STRIP OBJCOPY OBJDUMP READELF PAHOLE RESOLVE_BTFIDS LEX YACC AWK INSTALLKERNEL
  export PERL PYTHON PYTHON3 CHECK CHECKFLAGS MAKE UTS_MACHINE HOSTCXX
  export KGZIP KBZIP2 KLZOP LZMA LZ4 XZ ZSTD
  export KBUILD_HOSTCXXFLAGS KBUILD_HOSTLDFLAGS KBUILD_HOSTLDLIBS LDFLAGS_MODULE
@@@ -826,7 -828,9 +826,9 @@@ els
  DEBUG_CFLAGS  += -g
  endif
  
+ ifneq ($(LLVM_IAS),1)
  KBUILD_AFLAGS += -Wa,-gdwarf-2
+ endif
  
  ifdef CONFIG_DEBUG_INFO_DWARF4
  DEBUG_CFLAGS  += -gdwarf-4
@@@ -944,7 -948,7 +946,7 @@@ KBUILD_CFLAGS   += $(call cc-option,-We
  KBUILD_CFLAGS   += $(call cc-option,-Werror=designated-init)
  
  # change __FILE__ to the relative path from the srctree
- KBUILD_CFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
+ KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srctree)/=)
  
  # ensure -fcf-protection is disabled when using retpoline as it is
  # incompatible with -mindirect-branch=thunk-extern
@@@ -982,6 -986,12 +984,12 @@@ ifeq ($(CONFIG_RELR),y
  LDFLAGS_vmlinux       += --pack-dyn-relocs=relr
  endif
  
+ # We never want expected sections to be placed heuristically by the
+ # linker. All sections should be explicitly named in the linker script.
+ ifdef CONFIG_LD_ORPHAN_WARN
+ LDFLAGS_vmlinux += --orphan-handling=warn
+ endif
  # Align the bit size of userspace programs with the kernel
  KBUILD_USERCFLAGS  += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
  KBUILD_USERLDFLAGS += $(filter -m32 -m64 --target=%, $(KBUILD_CFLAGS))
diff --combined arch/powerpc/Makefile
index 16b8336f91dda417161a28ed5458cf2822c09b36,d9eb0da845e1c74f0be8765d69092580221321a7..5c8c06215dd4ba7c6efefe1e948620ba6e4f4095
@@@ -123,7 -123,6 +123,6 @@@ endi
  LDFLAGS_vmlinux-y := -Bstatic
  LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie
  LDFLAGS_vmlinux       := $(LDFLAGS_vmlinux-y)
- LDFLAGS_vmlinux += $(call ld-option,--orphan-handling=warn)
  
  ifdef CONFIG_PPC64
  ifeq ($(call cc-option-yn,-mcmodel=medium),y)
@@@ -248,6 -247,7 +247,6 @@@ KBUILD_CFLAGS              += $(call cc-option,-mno
  cpu-as-$(CONFIG_40x)          += -Wa,-m405
  cpu-as-$(CONFIG_44x)          += -Wa,-m440
  cpu-as-$(CONFIG_ALTIVEC)      += $(call as-option,-Wa$(comma)-maltivec)
 -cpu-as-$(CONFIG_E200)         += -Wa,-me200
  cpu-as-$(CONFIG_E500)         += -Wa,-me500
  
  # When using '-many -mpower4' gas will first try and find a matching power4
diff --combined init/Kconfig
index 02d13ae27abb907972e8446387decb72c782d7df,b9037d6c5ab3ebc23099f8b79733bb3700b4fed9..0872a5a2e7590c0ade132f624af8d6e39de61544
@@@ -47,6 -47,10 +47,10 @@@ config CLANG_VERSIO
        int
        default $(shell,$(srctree)/scripts/clang-version.sh $(CC))
  
+ config LLD_VERSION
+       int
+       default $(shell,$(srctree)/scripts/lld-version.sh $(LD))
  config CC_CAN_LINK
        bool
        default $(success,$(srctree)/scripts/cc-can-link.sh $(CC) $(CLANG_FLAGS) $(m64-flag)) if 64BIT
@@@ -719,7 -723,7 +723,7 @@@ config LOG_CPU_MAX_BUF_SHIF
          with more CPUs. Therefore this value is used only when the sum of
          contributions is greater than the half of the default kernel ring
          buffer as defined by LOG_BUF_SHIFT. The default values are set
 -        so that more than 64 CPUs are needed to trigger the allocation.
 +        so that more than 16 CPUs are needed to trigger the allocation.
  
          Also this option is ignored when "log_buf_len" kernel parameter is
          used as it forces an exact (power of two) size of the ring buffer.
@@@ -1348,6 -1352,12 +1352,12 @@@ config LD_DEAD_CODE_DATA_ELIMINATIO
          present. This option is not well tested yet, so use at your
          own risk.
  
+ config LD_ORPHAN_WARN
+       def_bool y
+       depends on ARCH_WANT_LD_ORPHAN_WARN
+       depends on !LD_IS_LLD || LLD_VERSION >= 110000
+       depends on $(ld-option,--orphan-handling=warn)
  config SYSCTL
        bool
  
This page took 0.135461 seconds and 4 git commands to generate.