Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp951590iob; Fri, 13 May 2022 17:31:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkVxt6T8dj7fSc8N0r2BfrJdaka9N0nZkuVQtAi0Xxon9luFvl+innM4TjmGdhgtuaxK3b X-Received: by 2002:a05:600c:6005:b0:394:7ba4:5e62 with SMTP id az5-20020a05600c600500b003947ba45e62mr17418683wmb.25.1652488267241; Fri, 13 May 2022 17:31:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652488267; cv=none; d=google.com; s=arc-20160816; b=PsyXiYEG1Wl8hcpD99kuCYuHGc9EhYWzc9dk5fNJTxTF2AeNJu2Se7gaaAgGIw/FRS rhYBdAYMzT9DBJsADa14s8ed9O+OOs2buVxPJdGuT8amPG/MjpFiYkYZZ7gUFQIXLAip IvTLVPN9KH/RvEZtJfv1aI78FhLx6gptFr9djFrAoppBidjOnP+P5WrxvtmqzDonSQSY iHiJYqP9RUxWvZNWBKQtMjEULjN9iKlZqEcNLoCskPyNxCeX75OfXXwYll2K1I2umjMe mYd5mZVa1J8lE9vnkFYUX+XWMWq9YpnJ6LnhwwVPHylThRsKD80dgM/SR9MsFXaP8VpI cFEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=YRv/xzScxOrQW/8sn4wWLVoj5v+rd5AiWdMBOiUctKg=; b=PBQR5ucTwU5pHLdrswCXoauH4ukFYvlImj5oZaMtqkLSDnQ9tKsFyQ4tzxkxfERrNH e3b869JCBG+2btlPTh+ItRc5VoG8o8+0bznAuxTyzcTx1lIcicH4QsSAl1nclgykved0 sKIPfnfWoRg8usiW/zdJl/pC+Uvb2W71JMUAaK795zNPEKb6eT9Az/mMRoTZwRZixOjg Plk7ro4ALFLMIo/Z7fHLOwf1LU++BVcm2qE/Jg+Nv0QL68BsZL3G5SpKwUPoJL/15Tg/ fy6dlj9JLDd6hhlaMykYNcos7vE+2L7FYUaSoJLCL0v7iEpY0MNkfWS+O7l647giV1gM fDxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UGqfwMzg; 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=fail (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 u9-20020adfdb89000000b0020c579317ffsi3346980wri.781.2022.05.13.17.31.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 May 2022 17:31:07 -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=@nifty.com header.s=dec2015msa header.b=UGqfwMzg; 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=fail (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 8C7AA30B068; Fri, 13 May 2022 16:22:38 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379846AbiEMLUW (ORCPT + 99 others); Fri, 13 May 2022 07:20:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236605AbiEMLUU (ORCPT ); Fri, 13 May 2022 07:20:20 -0400 Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D31E92A7C03; Fri, 13 May 2022 04:20:18 -0700 (PDT) Received: from mail-pl1-f181.google.com (mail-pl1-f181.google.com [209.85.214.181]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 24DBK5Mb007622; Fri, 13 May 2022 20:20:06 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 24DBK5Mb007622 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1652440806; bh=YRv/xzScxOrQW/8sn4wWLVoj5v+rd5AiWdMBOiUctKg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UGqfwMzgeClovZLtU/GqthVETIVynVx++gBYzA2T8pfzgoyiaL4Z7jaKRI988iWEE vtC85R/npyGd6jNzXc9I2Nf3U96knFJSAPuQIiZjG3HPdTLxg28yPh0pKxUSE8/GqV Hg8542rC0YdVOgM6zl/fshK150AlPBFErNmnnsYvv5+moql/4PYhV6KZmmfg162el6 dQ9IipdOPTYDYdeHcG+HyPej5i20f6QHl8zp3AiUydBrVFT/TFOyclr+5hu6CU++dF jozcIKEhhATo4P9sZBZs/lEvWgfNWW7Rd5VZ2ovWaf4kfOyQYX0CpHzySSY8L+XaoL N7/IyShNio5Rw== X-Nifty-SrcIP: [209.85.214.181] Received: by mail-pl1-f181.google.com with SMTP id n18so7635257plg.5; Fri, 13 May 2022 04:20:06 -0700 (PDT) X-Gm-Message-State: AOAM533FWOrhmkXkACOSLBkQjd6DpSJAWj8U6jgHUgF8+TlT1bc3vBlP f7OrAWBB4WPBYhMQIHNzh9iuzilDu2nTCFtt5WI= X-Received: by 2002:a17:903:1205:b0:15e:8cbc:fd2b with SMTP id l5-20020a170903120500b0015e8cbcfd2bmr4405025plh.99.1652440805394; Fri, 13 May 2022 04:20:05 -0700 (PDT) MIME-Version: 1.0 References: <20220511164514.2741934-1-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 13 May 2022 20:18:50 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 00/12] kbuild: yet another series of cleanups (modpost, LTO, MODULE_REL_CRCS, export.h) To: Nathan Chancellor Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Nick Desaulniers , Nicolas Schier , Peter Zijlstra , linux-modules , clang-built-linux , Ard Biesheuvel , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, May 12, 2022 at 5:04 AM Nathan Chancellor wrote: > > 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 Thanks for your testing. I ended up with v6 due to a build issue of CONFIG_TRIM_UNUSED_KSYMS, but this patch set is getting in good shape. Thanks. -- Best Regards Masahiro Yamada