From patchwork Sat Jul 1 09:01:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 115018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10920803vqr; Sat, 1 Jul 2023 02:13:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlHq2N53qMyFwIziC1HO7bIWlRCPhQdgf+1GyvAqEWsPUyA+kWD6JC/32Vt1UkUSe6gKvohM X-Received: by 2002:a05:6870:e40c:b0:1b0:f90:4c91 with SMTP id n12-20020a056870e40c00b001b00f904c91mr6362270oag.8.1688202786753; Sat, 01 Jul 2023 02:13:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688202786; cv=none; d=google.com; s=arc-20160816; b=lTebDRofYoZowwGmwdnwujzeV61NbwoDlsUh5PKdc00BM/hklhf0xWcc14cSFA3uwY /Hb5xr7Y5H7D5MMGDNlNizBn6ayoARUJgIN7SqYRSFpni9dtSp8TRStbeXmFYZReNFaN BK0ESGOuFNUhhd6g462lh3AnhOVNGAqqVzStP+j65mus8nBV1qh7XZklC0RXPpsYVxd4 jPbUUubyg96ZPGwW32OaIPoN9x0L3Pn1NjYqncKQdmKzOqI3SnFz0eaE2jETm8NaCgBi uxuEeW1VgS3mSx/do39Lz8TqIb8YJZG7/FfPpvIK20KE1wnO5/yDrw2xKQWGaVSkfYdy bzRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:mime-version:dkim-signature; bh=Ml+yPE691OaR9oSVTrFWKLQ8PYACmsguVhRwarIB1do=; fh=1U2PnarxRyAwm5743ZmMLZ2NZE/5ZNEL3VpBH2gfUkI=; b=mtHRRPFE7KBz3DYEJ6XOKNF+E16te2lh3LuS3423l246awLATBPMCY7OfoJhydblyr 4RB3/Zdqe0ZNw2IKo1IamEDYs//rSuUcMKWWJO7pHqMBpYj7ufxVQJLdLUQSBQlFft6u q9iodE7Za+qQCCkh2eY562bRiAa7v+RYrfWmsZNZKqDKiSYPYYvqm8Ya62rTDHccvIij f/vpNYfbBha7BRTbh17yFjVkmJa0lkHqL/6fyIay3GEiHEPZkaJYDkCck++yZdXhBLTh MeKOB1B+wgNsNLQS0Ux9NjaHTDxeBD+dT8fQoFXGFIgGcpSr4H64RdHZroR3A5T2a6gP 14Cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lBBgNIde; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bf16-20020a17090b0b1000b002637aa0a4dbsi3080374pjb.103.2023.07.01.02.12.47; Sat, 01 Jul 2023 02:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lBBgNIde; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229514AbjGAJCJ (ORCPT + 99 others); Sat, 1 Jul 2023 05:02:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229452AbjGAJCF (ORCPT ); Sat, 1 Jul 2023 05:02:05 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01730BC; Sat, 1 Jul 2023 02:02:03 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8131B60ADF; Sat, 1 Jul 2023 09:02:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DA9E2C433C8; Sat, 1 Jul 2023 09:02:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688202122; bh=ENIAoH2n3kNLaBQhcZgtrZRWpyv37Ars5g2xtqOj7KA=; h=From:Date:Subject:To:Cc:From; b=lBBgNIdeYfUshUKc+VIcMaCn15e0HNIdIEtP+QPjkbZjWMC7lxLx1PZ8Enz+EnSXI mjbqDwnPqo+UZLUOFjrjli+//I/xvRh1+5GPVNrV/Ux53SmrOx9t477x/MosCq0Sv5 MtYM07H4lyR2wL8NKT+HCexMeqAP/WByQvuExdRTOnnOU/AXPo4OpZXQ8w+impgHS/ 5ALuXVLzi3dlDqPZ34kC9COlFs+VDRbYu/zlx/CacItzFJkM0FuAwBGy7Ygz/yxfCi jb+zlQia1ayUFXNjWt00juKmn965qP2wtA0Z+yIOD4cVS411aCkWOSHdkP7/XpczgA GtFntXcTrnSEw== Received: by mail-oo1-f51.google.com with SMTP id 006d021491bc7-565d65adcf2so1305762eaf.3; Sat, 01 Jul 2023 02:02:02 -0700 (PDT) X-Gm-Message-State: AC+VfDx5Tiwz6EkAS0oRMG3ySXYNQaUp+H4oBecjcCx9lg+jKJvIKHaD NvFcjBUBTxhp1JiYKSTPZhj4vLxlUBCcvX6cFGs= X-Received: by 2002:a05:6808:309a:b0:3a1:d629:d1dd with SMTP id bl26-20020a056808309a00b003a1d629d1ddmr5487987oib.56.1688202122110; Sat, 01 Jul 2023 02:02:02 -0700 (PDT) MIME-Version: 1.0 From: Masahiro Yamada Date: Sat, 1 Jul 2023 18:01:25 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: [GIT PULL] Kbuild updates for v6.5-rc1 To: Linus Torvalds Cc: Linux Kernel Mailing List , Linux Kbuild mailing list X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770208925353342744?= X-GMAIL-MSGID: =?utf-8?q?1770208925353342744?= Hello Linus, Please pull Kbuild updates for v6.5-rc1. Thank you. The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6: Linux 6.4-rc2 (2023-05-14 12:51:40 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git tags/kbuild-v6.5 for you to fetch changes up to f5983dab0ead92dc2690d147f0604a0badcac6a8: modpost: define more R_ARM_* for old distributions (2023-06-29 01:36:41 +0900) ---------------------------------------------------------------- Kbuild updates for v6.5 - Remove the deprecated rule to build *.dtbo from *.dts - Refactor section mismatch detection in modpost - Fix bogus ARM section mismatch detections - Fix error of 'make gtags' with O= option - Add Clang's target triple to KBUILD_CPPFLAGS to fix a build error with the latest LLVM version - Rebuild the built-in initrd when KBUILD_BUILD_TIMESTAMP is changed - Ignore more compiler-generated symbols for kallsyms - Fix 'make local*config' to handle the ${CONFIG_FOO} form in Makefiles - Enable more kernel-doc warnings with W=2 - Refactor by generating KSYMTAB data by modpost - Deprecate and - Remove the EXPORT_DATA_SYMBOL macro - Move the check for static EXPORT_SYMBOL back to modpost, which makes the build faster - Re-implement CONFIG_TRIM_UNUSED_KSYMS with one-pass algorithm - Warn missing MODULE_DESCRIPTION when building modules with W=1 - Make 'make clean' robust against too long argument error - Exclude more objects from GCOV to fix CFI failures with GCOV - Allow 'make modules_install' to install modules.builtin and modules.builtin.modinfo even when CONFIG_MODULES is disabled - Include modules.builtin and modules.builtin.modinfo in the linux-image Debian package even when CONFIG_MODULES is disabled - Revive "Entering directory" logging for the latest Make version ---------------------------------------------------------------- Ahmed S. Darwish (2): scripts/tags.sh: Resolve gtags empty index generation docs: Set minimal gtags / GNU GLOBAL version to 6.6.5 Andrew Davis (1): kbuild: Disallow DTB overlays to built from .dts named source files Benjamin Gray (1): initramfs: Encode dependency on KBUILD_BUILD_TIMESTAMP Dan Carpenter (1): modpost: fix off by one in is_executable_section() Jiri Slaby (1): streamline_config.pl: handle also ${CONFIG_FOO} Johannes Berg (2): kernel-doc: don't let V=1 change outcome kbuild: enable kernel-doc -Wall for W=2 Josh Triplett (1): kbuild: builddeb: always make modules_install, to install modules.builtin* Masahiro Yamada (53): modpost: error out if addend_*_rel() is not implemented for REL arch modpost: remove broken calculation of exception_table_entry size modpost: remove fromsym info in __ex_table section mismatch warning modpost: remove get_prettyname() modpost: squash report_extable_warnings() into extable_mismatch_handler() modpost: squash report_sec_mismatch() into default_mismatch_handler() modpost: clean up is_executable_section() modpost: squash extable_mismatch_handler() into default_mismatch_handler() modpost: pass 'tosec' down to default_mismatch_handler() modpost: pass section index to find_elf_symbol2() modpost: rename find_elf_symbol() and find_elf_symbol2() Revert "kheaders: substituting --sort in archive creation" doc: Add tar requirement to changes.rst Revert "modpost: skip ELF local symbols during section mismatch check" modpost: remove unused argument from secref_whitelist() modpost: unify 'sym' and 'to' in default_mismatch_handler() modpost: replace r->r_offset, r->r_addend with faddr, taddr modpost: remove is_shndx_special() check from section_rel(a) modpost: merge fromsec=DATA_SECTIONS entries in sectioncheck table modpost: merge bad_tosec=ALL_EXIT_SECTIONS entries in sectioncheck table modpost: remove *_sections[] arrays modpost: fix section mismatch message for R_ARM_ABS32 modpost: fix section mismatch message for R_ARM_{PC24,CALL,JUMP24} modpost: detect section mismatch for R_ARM_{MOVW_ABS_NC,MOVT_ABS} modpost: refactor find_fromsym() and find_tosym() modpost: detect section mismatch for R_ARM_THM_{MOVW_ABS_NC,MOVT_ABS} modpost: fix section_mismatch message for R_ARM_THM_{CALL,JUMP24,JUMP19} modpost: detect section mismatch for R_ARM_REL32 kbuild: add $(CLANG_FLAGS) to KBUILD_CPPFLAGS modpost: propagate W=1 build option to modpost Revert "[PATCH] uml: export symbols added by GCC hardened" scripts/kallsyms: constify long_options scripts/kallsyms: remove KSYM_NAME_LEN_BUFFER ARC: define ASM_NL and __ALIGN(_STR) outside #ifdef __ASSEMBLY__ guard modpost: pass struct module pointer to check_section_mismatch() kbuild: generate KSYMTAB entries by modpost ia64,export.h: replace EXPORT_DATA_SYMBOL* with EXPORT_SYMBOL* modpost: check static EXPORT_SYMBOL* by modpost again modpost: squash sym_update_namespace() into sym_add_exported() modpost: use null string instead of NULL pointer for default namespace kbuild: implement CONFIG_TRIM_UNUSED_KSYMS without recursion modpost: merge two similar section mismatch warnings modpost: show offset from symbol for section mismatch warnings linux/export.h: rename 'sec' argument to 'license' kbuild: make modules_install copy modules.builtin(.modinfo) kbuild: make clean rule robust against too long argument error modpost: factor out inst location calculation to section_rel() modpost: factor out Elf_Sym pointer calculation to section_rel() modpost: continue even with unknown relocation type kbuild: deb-pkg: remove the CONFIG_MODULES check in buildeb kbuild: set correct abs_srctree and abs_objtree for package builds kbuild: revive "Entering directory" for Make >= 4.4.1 modpost: define more R_ARM_* for old distributions Nathan Chancellor (4): mips: Include KBUILD_CPPFLAGS in CHECKFLAGS invocation powerpc/vdso: Include CLANG_FLAGS explicitly in ldflags-y kbuild: Add CLANG_FLAGS to as-instr kbuild: Add KBUILD_CPPFLAGS to as-option invocation Pierre-Clément Tosi (3): scripts/mksysmap: Fix badly escaped '$' scripts/mksysmap: Ignore __pi_ local arm64 symbols scripts/mksysmap: Ignore prefixed KCFI symbols Sami Tolvanen (2): kbuild: Fix CFI failures with GCOV kbuild: Disable GCOV for *.mod.o Vincenzo Palazzo (1): script: modpost: emit a warning when the description is missing .gitignore | 2 - Documentation/kbuild/kbuild.rst | 6 + Documentation/process/changes.rst | 14 + Makefile | 94 +++--- arch/arc/include/asm/linkage.h | 8 +- arch/ia64/include/asm/Kbuild | 1 + arch/ia64/include/asm/export.h | 3 - arch/ia64/kernel/head.S | 2 +- arch/ia64/kernel/ivt.S | 2 +- arch/mips/Makefile | 2 +- arch/powerpc/kernel/vdso/Makefile | 2 +- arch/um/os-Linux/user_syms.c | 7 - include/asm-generic/export.h | 83 +---- include/asm-generic/vmlinux.lds.h | 1 + include/linux/export-internal.h | 49 +++ include/linux/export.h | 128 ++------ include/linux/pm.h | 10 +- init/Makefile | 1 + kernel/gen_kheaders.sh | 9 +- kernel/module/internal.h | 12 + scripts/Makefile.build | 31 +- scripts/Makefile.clang | 3 +- scripts/Makefile.clean | 4 +- scripts/Makefile.compiler | 4 +- scripts/Makefile.lib | 3 - scripts/Makefile.modfinal | 2 +- scripts/Makefile.modpost | 8 + scripts/Makefile.vmlinux | 1 + scripts/adjust_autoksyms.sh | 73 ----- scripts/basic/fixdep.c | 3 +- scripts/check-local-export | 70 ---- scripts/gen_autoksyms.sh | 62 ---- scripts/gen_ksymdeps.sh | 30 -- scripts/kallsyms.c | 63 ++-- scripts/kconfig/streamline_config.pl | 2 +- scripts/kernel-doc | 28 +- scripts/mksysmap | 10 +- scripts/mod/modpost.c | 799 +++++++++++++++++++++------------------------ scripts/mod/modpost.h | 6 +- scripts/package/builddeb | 14 +- scripts/remove-stale-files | 4 + scripts/tags.sh | 9 +- usr/Makefile | 1 + usr/gen_initramfs.sh | 16 +- 44 files changed, 673 insertions(+), 1009 deletions(-) delete mode 100644 arch/ia64/include/asm/export.h delete mode 100755 scripts/adjust_autoksyms.sh delete mode 100755 scripts/check-local-export delete mode 100755 scripts/gen_autoksyms.sh delete mode 100755 scripts/gen_ksymdeps.sh