Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1017551iob; Fri, 13 May 2022 19:48:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyPq2ZCiMiIl1PQYvFdNLXZ0l/Lhjc2N5PGlOWhJtNSoG8WHAD3wjtOa6otP5matY9IormW X-Received: by 2002:adf:dd8b:0:b0:20c:d72f:7d05 with SMTP id x11-20020adfdd8b000000b0020cd72f7d05mr6042631wrl.636.1652496483763; Fri, 13 May 2022 19:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652496483; cv=none; d=google.com; s=arc-20160816; b=PHVoL8PMWjg/Z/39PEy9tf9rGl+H/lyVyUWxKh+2nnZY7O0/qpN0gQuRh+vXd3Xs1t HcagPijsPlT8HZCBXPGxMDMVbUEeOst8dz6FEiT2P83KBSBgeMc+YYpFzYnNVV2aYZEu 1lOLZzJy4c9z8Twqgi4PJr19nT50kUkg+WSU1HDSoWKB/FwCa7LeHVKhehK9t3RtB+9S oRTMohS0ORbcYISOzAiVmeiz28XimNP/3jqSJJvzjy46HXs8k27RHhg4lt++1XglXuI8 3i2wEezEpQX25f3jsc7ovCkGT0RvcNORxB8ra8lx5h0Q2KfuD3IsF6sI9aDHlYALu2dF 4HUg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zZF/ES+VkX98jX6a10yDCKgN94ofSKvjjjnL/fsGFwI=; b=IubnsdKzLv98uKGz90K7QdRvsHBI+brbXoinpVaHAaSQ6eYERRtoJCyiI3NTEYpG2a RfLovdMnpRRDDHgJUGQrSQVGqb9Ap6G/hdj8QFTVWdu298Re8ATNisIJ+ZBo5SaHwJny vnab4Tgy8eKdwJLOzotinX+a4cxLAqdfsZ/TuohZvzcvNze2nCKdG5LlB0JkTot3HMI4 9+JQ6+21aNi7GxMTU3nJxlFy5eQ2Crf1AD7R7oZHW0tUgnxCdGj6W1YtLqb1uI8oG9u/ Zw3elmL2FSN1Cx0s59Fsh4S6YGpu9L/YrURXDtUSzo7+RlyJLIAxFkSrNVhiVIrursrq d3pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="n3Fj/G3M"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id j3-20020a05600c1c0300b0038eb90a6c15si4491943wms.159.2022.05.13.19.48.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 19:48:03 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="n3Fj/G3M"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D009B367E50; Fri, 13 May 2022 16:35:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347544AbiEKUEM (ORCPT + 99 others); Wed, 11 May 2022 16:04:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347496AbiEKUEH (ORCPT ); Wed, 11 May 2022 16:04:07 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4626F2317D5; Wed, 11 May 2022 13:04:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id EE0B2B8261E; Wed, 11 May 2022 20:04:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E272C340EE; Wed, 11 May 2022 20:04:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1652299443; bh=QECFIEHeP/akX/1+3OaCSi9J5B/pyZpp7SXlX0Z6nz0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=n3Fj/G3MKPzS6rMAsbssX2HaIxxOk+A5/lQ0DznlPwU6NTQUz+Xq7IKOPR2iyOko5 Hv1B1q7FeZV2nPk0CSQ4PJi8oY9TDOxSEuNXuCs5U6OMKlV9JwnDpPn53VcafyLyex 21tSGxJ2MNcCSD0W3vDSdQylmuHWqhxujIy8noIFI+yWr0bxj4v6s/ek/TxpELzymB 4OafBMH1wxK67FmKKfv78D0lmdSD9bEhyBMGgovIFRnlBbVreX94uj5ICcNs9cfW37 ieRpRbWgy1sc1xk8qGARVWPv0LZM8qXp1/hNvCWOosNTiRntZh+FgLyXI0NiuBCMyB Doh9lNyrtUtRA== Date: Wed, 11 May 2022 13:04:01 -0700 From: Nathan Chancellor To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Nicolas Schier , Peter Zijlstra , linux-modules@vger.kernel.org, llvm@lists.linux.dev, Ard Biesheuvel , Sami Tolvanen Subject: Re: [PATCH v5 00/12] kbuild: yet another series of cleanups (modpost, LTO, MODULE_REL_CRCS, export.h) Message-ID: References: <20220511164514.2741934-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220511164514.2741934-1-masahiroy@kernel.org> X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Masahiro, On Thu, May 12, 2022 at 01:45:02AM +0900, Masahiro Yamada wrote: > > This is the third batch of cleanups in this development cycle. > > Major changes in v5: > - Fix build errors > - More cleanups > > Major changes in v4: > - Move static EXPORT_SYMBOL check to a script > - Some refactoring > > Major changes in v3: > > - Generate symbol CRCs as C code, and remove CONFIG_MODULE_REL_CRCS. > > Major changes in v2: > > - V1 did not work with CONFIG_MODULE_REL_CRCS. > I fixed this for v2. > > - Reflect some review comments in v1 > > - Refactor the code more > > - Avoid too long argument error > > > > Masahiro Yamada (12): > modpost: split the section mismatch checks into section-check.c > modpost: add sym_find_with_module() helper > modpost: extract symbol versions from *.cmd files > kbuild: link symbol CRCs at final link, removing > CONFIG_MODULE_REL_CRCS > kbuild: stop merging *.symversions > genksyms: adjust the output format to modpost > kbuild: do not create *.prelink.o for Clang LTO or IBT > kbuild: check static EXPORT_SYMBOL* by script instead of modpost > kbuild: make built-in.a rule robust against too long argument error > kbuild: make *.mod rule robust against too long argument error > kbuild: add cmd_and_savecmd macro > kbuild: rebuild multi-object modules when objtool is updated I applied this series to your latest kbuild branch, built an Arch Linux x86_64 config and Fedora aarch64 config with CONFIG_LTO_CLANG_FULL=y then CONFIG_LTO_CLANG_THIN=y, and boot tested each kernel in QEMU with a full userspace. I did not notice any new warnings/errors and everything appears to work fine. Tested-by: Nathan Chancellor Cheers, Nathan