[GIT PULL] Kbuild updates for v5.15-rc1

From: Masahiro Yamada
Date: Mon Aug 30 2021 - 21:35:20 EST


Hi Linus,

Please pull Kbuild updates for v5.15-rc1.


This pull request is randomly touching many files in the tree,
most of which are <stdarg.h> cleanups.


After pulling this, you may see new warnings like this:

arch/x86/entry/vdso/Makefile:135: FORCE prerequisite is missing

They are just trivial Makefile mistakes, and patches
already exist. So, they will be fixed sooner or later.



Thanks.




The following changes since commit 36a21d51725af2ce0700c6ebcb6b9594aac658a6:

Linux 5.14-rc5 (2021-08-08 13:49:31 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git
kbuild-v5.15

for you to fetch changes up to 26d5313d02e4c5ca05bbf01e162abad7eebda906:

checkkconfigsymbols.py: Fix the '--ignore' option (2021-08-27 14:07:07 +0900)

----------------------------------------------------------------
Kbuild updates for v5.15

- Add -s option (strict mode) to merge_config.sh to make it fail when
any symbol is redefined.

- Show a warning if a different compiler is used for building external
modules.

- Infer --target from ARCH for CC=clang to let you cross-compile the
kernel without CROSS_COMPILE.

- Make the integrated assembler default (LLVM_IAS=1) for CC=clang.

- Add <linux/stdarg.h> to the kernel source instead of borrowing
<stdarg.h> from the compiler.

- Remove -isystem from the global compiler flag (except nds32) so
nobody will accidentally include unintended headers.

- Add Nick Desaulniers as a Kbuild reviewer.

- Drop stale cc-option tests.

- Fix the combination of CONFIG_TRIM_UNUSED_KSYMS and CONFIG_LTO_CLANG
to handle symbols in inline assembly.

- Show a warning if 'FORCE' is missing for if_changed rules.

- Various cleanups

----------------------------------------------------------------
Alexey Dobriyan (3):
isystem: trim/fixup stdarg.h and other headers
isystem: ship and use stdarg.h
isystem: delete global -isystem compile option

Ariel Marcovitch (1):
checkkconfigsymbols.py: Fix the '--ignore' option

Greg Kroah-Hartman (1):
kbuild: sh: remove unused install script

Masahiro Yamada (16):
kbuild: do not require sub-make for separate output tree builds
scripts: make some scripts executable
kbuild: warn if a different compiler is used for external module builds
kbuild: check CONFIG_AS_IS_LLVM instead of LLVM_IAS
kbuild: macrofy the condition of if_changed and friends
kbuild: warn if FORCE is missing for if_changed(_dep,_rule) and filechk
kbuild: Fix 'no symbols' warning when CONFIG_TRIM_UNUSD_KSYMS=y
security: remove unneeded subdir-$(CONFIG_...)
sparc: move the install rule to arch/sparc/Makefile
ia64: move core-y in arch/ia64/Makefile to arch/ia64/Kbuild
gen_compile_commands: extract compiler command from a series of commands
kbuild: remove unused quiet_cmd_update_lto_symversions
kbuild: remove stale *.symversions
kbuild: merge vmlinux_link() between the ordinary link and Clang LTO
kbuild: do not remove 'linux' link in scripts/link-vmlinux.sh
kbuild: merge vmlinux_link() between ARCH=um and other architectures

Matthias Maennich (1):
scripts: merge_config: add strict mode to fail upon any redefinition

Nathan Chancellor (4):
kbuild: Remove -Wno-format-invalid-specifier from clang block
kbuild: Add a comment above -Wno-gnu
kbuild: Shuffle blank line to improve comment meaning
kbuild: Switch to 'f' variants of integrated assembler flag

Nick Desaulniers (9):
Makefile: move initial clang flag handling into scripts/Makefile.clang
Makefile: infer --target from ARCH for CC=clang
Documentation/llvm: update CROSS_COMPILE inferencing
scripts/Makefile.clang: default to LLVM_IAS=1
MAINTAINERS: add Nick to Kbuild reviewers
Makefile: remove stale cc-option checks
s390: replace cc-option-yn uses with cc-option
arc: replace cc-option-yn uses with cc-option
x86: remove cc-option-yn test for -mtune=

Sami Tolvanen (1):
kbuild: Fix TRIM_UNUSED_KSYMS with LTO_CLANG

Documentation/kbuild/llvm.rst
| 25 +++++++--
MAINTAINERS | 2 +
Makefile
| 92 ++++++++++++++++++----------------
arch/arc/Makefile | 3 +-
arch/arm/kernel/process.c | 2 -
arch/arm/mach-bcm/bcm_kona_smc.c | 2 -
arch/arm64/kernel/process.c | 3 --
arch/arm64/lib/Makefile | 2 +
arch/ia64/Kbuild | 2 +
arch/ia64/Makefile | 2 -
arch/mips/Makefile | 2 +-
arch/nds32/Makefile | 2 +
arch/openrisc/kernel/process.c | 2 -
arch/parisc/kernel/firmware.c | 2 +-
arch/parisc/kernel/process.c | 3 --
arch/powerpc/kernel/prom.c | 1 -
arch/powerpc/kernel/prom_init.c | 2 +-
arch/powerpc/kernel/rtas.c | 2 +-
arch/powerpc/kernel/udbg.c | 2 +-
arch/powerpc/lib/Makefile | 2 +
arch/riscv/Makefile | 2 +-
arch/s390/Makefile
| 14 +++---
arch/s390/boot/pgm_check_info.c | 2 +-
arch/sh/boot/compressed/install.sh
| 56 ---------------------
arch/sparc/Makefile | 3 +-
arch/sparc/boot/Makefile | 4 --
arch/sparc/kernel/process_32.c | 3 --
arch/sparc/kernel/process_64.c | 3 --
arch/um/Makefile | 6 +--
arch/um/drivers/rtc_user.c | 1 +
arch/um/drivers/vector_user.c | 1 +
arch/um/include/shared/irq_user.h | 1 -
arch/um/include/shared/os.h | 1 -
arch/um/os-Linux/signal.c | 2 +-
arch/um/os-Linux/util.c | 1 +
arch/x86/Makefile | 2 +-
arch/x86/Makefile_32.cpu | 6 ---
arch/x86/boot/boot.h | 2 +-
crypto/Makefile | 2 +
drivers/block/xen-blkback/xenbus.c | 1 -
drivers/firmware/efi/libstub/efi-stub-helper.c | 2 +-
drivers/firmware/efi/libstub/vsprintf.c | 2 +-
drivers/gpu/drm/amd/display/dc/dc_helper.c | 2 +-
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h | 1 -
drivers/gpu/drm/drm_print.c | 2 +-
drivers/gpu/drm/msm/disp/msm_disp_snapshot.h | 1 -
drivers/isdn/capi/capiutil.c | 2 +-
drivers/macintosh/macio-adb.c | 1 -
drivers/macintosh/via-cuda.c | 2 +-
drivers/macintosh/via-macii.c | 2 -
drivers/macintosh/via-pmu.c | 2 +-
drivers/net/wireless/intersil/orinoco/hermes.c | 1 -
drivers/net/wwan/iosm/iosm_ipc_imem.h | 1 -
drivers/pinctrl/aspeed/pinmux-aspeed.h | 1 -
drivers/scsi/elx/efct/efct_driver.h | 1 -
drivers/staging/media/atomisp/pci/hive_isp_css_common/host/isp_local.h | 2 -
drivers/staging/media/atomisp/pci/hive_isp_css_include/print_support.h | 2 +-
drivers/staging/media/atomisp/pci/ia_css_env.h | 2 +-
.../staging/media/atomisp/pci/runtime/debug/interface/ia_css_debug.h | 2 +-
drivers/staging/media/atomisp/pci/sh_css_internal.h | 2 +-
drivers/xen/xen-scsiback.c | 2 -
fs/befs/debug.c | 2 +-
fs/reiserfs/prints.c | 2 +-
fs/ufs/super.c | 2 +-
include/acpi/platform/acgcc.h | 2 +-
include/linux/filter.h | 2 -
include/linux/kernel.h | 2 +-
include/linux/mISDNif.h | 1 -
include/linux/printk.h | 2 +-
include/linux/stdarg.h
| 11 ++++
include/linux/string.h | 2 +-
kernel/debug/kdb/kdb_support.c | 1 -
lib/Kconfig.debug | 2 +
lib/debug_info.c | 3 +-
lib/kasprintf.c | 2 +-
lib/kunit/string-stream.h | 2 +-
lib/raid6/Makefile | 4 ++
lib/vsprintf.c | 2 +-
mm/kfence/report.c | 2 +-
net/batman-adv/log.c | 2 +-
scripts/Kbuild.include
| 13 +++--
scripts/Makefile.build
| 30 ++++++++++-
scripts/Makefile.clang
| 35 +++++++++++++
scripts/Makefile.lib | 7 +++
scripts/Makefile.modfinal
| 21 +-------
scripts/Makefile.modpost
| 22 ++------
scripts/as-version.sh | 8 +--
scripts/checkdeclares.pl | 0
scripts/checkkconfigsymbols.py | 2 +-
scripts/clang-tools/gen_compile_commands.py | 2 +-
scripts/gcc-plugins/gen-random-seed.sh | 0
scripts/gen_autoksyms.sh
| 12 -----
scripts/gen_ksymdeps.sh | 8 ++-
scripts/kconfig/merge_config.sh
| 15 ++++++
scripts/link-vmlinux.sh
| 81 +++++++++++++-----------------
scripts/syscallnr.sh | 0
scripts/xen-hypercalls.sh | 0
security/Makefile
| 11 ----
sound/aoa/codecs/onyx.h | 1 -
sound/aoa/codecs/tas.c | 1 -
sound/core/info.c | 1 -
101 files changed, 298 insertions(+), 323 deletions(-)
delete mode 100644 arch/sh/boot/compressed/install.sh
create mode 100644 include/linux/stdarg.h
create mode 100644 scripts/Makefile.clang
mode change 100644 => 100755 scripts/checkdeclares.pl
mode change 100644 => 100755 scripts/gcc-plugins/gen-random-seed.sh
mode change 100644 => 100755 scripts/syscallnr.sh
mode change 100644 => 100755 scripts/xen-hypercalls.sh



--
Best Regards
Masahiro Yamada