Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1187467rwb; Wed, 28 Sep 2022 14:39:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6NUp3CMSRIhcwDLdcNnpol0bO3QgTmC8ObTRderLxk8AwJzsqIeBoTaqvsheTJgLNEZzoa X-Received: by 2002:a17:90b:4c50:b0:202:c7b1:b1f9 with SMTP id np16-20020a17090b4c5000b00202c7b1b1f9mr12701123pjb.77.1664401161409; Wed, 28 Sep 2022 14:39:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664401161; cv=none; d=google.com; s=arc-20160816; b=dvf3erlqu9Myt384/StGS4SKGIO+IpKLSt7eQSO2ypZKm9yvv7A99Ju+dJfpKzfz5I ZmJDA45nX5xibLbXCZbSpxA2sE9sr9SO8k5jBpo62VB3zlwoeRSI8l2XVC5B0z4WWq/S q6oNYs5sOPySvRQ/UQVUF/JGSERmaHwaJzH+m4xfA7iGcWFq1j9TWbQNMwgN00SJxTcb lSQECNRne2cocxPw89r+Q5S3CEqfU91G4Q7M9nI6nATyBGUgI35ST3ulBcvnYUO9pwOD wM9w75hv/N89D+Fr8Zsc2FkGwiwjF79q9qtjcCVC2VMydIjIN7hpIxJCsdjFjju5i3Ly Fpcw== 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=la5EsbEMHmA/CJNM5Muo6C+Tq1IqrhfhIXVR576yhI4=; b=GSUFpuII7t3gHZKrT6wCV1/ejkzhA+lBzMtmZA/wd9rkbYTuCtqEdI03J91cifnJQt pj1FA0NEAIfVExJNEf4qVotIwM47ZTW0EkNWFvO6+EbpCloLCeWGV1EYlQhqBzGQolEr 0Cd0jWY6kKxnjH67146rp6jrYH0NM8XqFSn/lDeLoZgTEbrU5Jpt5ojUXnQ+TDt7fxOW 1MTpKqVxsJFJbErOWR0lTUFESUWH4KjCWyV5UJDQ567zcPInJ2CRjsJKedPt2/py65SS ipQo44yWjeGjCayk0JNhT9xHD7JANTUn1PS9WJNblK0WHEbBUCY5YmyUsWaC3klO6pGK 3+fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=0xjS+Hok; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp6-20020a17090b4a8600b001fafaf2e8fesi3657773pjb.104.2022.09.28.14.39.10; Wed, 28 Sep 2022 14:39:21 -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=@nifty.com header.s=dec2015msa header.b=0xjS+Hok; 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 S232439AbiI1VOf (ORCPT + 99 others); Wed, 28 Sep 2022 17:14:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235018AbiI1VOJ (ORCPT ); Wed, 28 Sep 2022 17:14:09 -0400 Received: from condef-06.nifty.com (condef-06.nifty.com [202.248.20.71]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FCF3110B12; Wed, 28 Sep 2022 14:09:10 -0700 (PDT) Received: from conssluserg-03.nifty.com ([10.126.8.82])by condef-06.nifty.com with ESMTP id 28SL5JwE013651; Thu, 29 Sep 2022 06:05:19 +0900 Received: from mail-oa1-f41.google.com (mail-oa1-f41.google.com [209.85.160.41]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 28SL4kYs027628; Thu, 29 Sep 2022 06:04:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 28SL4kYs027628 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1664399087; bh=la5EsbEMHmA/CJNM5Muo6C+Tq1IqrhfhIXVR576yhI4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=0xjS+HokgTAU6kykjqgYtjKz0jxmy+3LdP3cMcJHu+q+1xOZwXi+MWzZveVqtgSij 37LB4ehOlUx3A9cQPJ7H2KDVud99BZ0BCghRGLbnwilqqLQFFxmFcapYxRK/NwxC/D xtJBFDynJ8HdevSGWcyrCs9eo+iiZDDL43zNnK840H0UIiuL4VFpRJ52VTIUnDKtWD B27y23S3cpsA2z70Jp4nlt4RiXmQS+vkRFE0jGpcbpZCrv0viN3dC22u1YYtsAr1vd F501/9Fz3tzRmswzZMJ/8O72yVFrKuXmb+wBepX2BUHL9IuQh3nvFrIApqI3e9XMkd CmSw1BoBrGkBg== X-Nifty-SrcIP: [209.85.160.41] Received: by mail-oa1-f41.google.com with SMTP id 586e51a60fabf-13189cd5789so7106477fac.11; Wed, 28 Sep 2022 14:04:47 -0700 (PDT) X-Gm-Message-State: ACrzQf3S+M0vWNsumDngacdUse3ItN4pPQm3OtP9W/s9YPQUBnGRK7Oh RNw9DbYIjohAvRAYSsSAZnEVc3YzYVwrdrz5dQ8= X-Received: by 2002:a05:6870:6326:b0:131:9200:c99d with SMTP id s38-20020a056870632600b001319200c99dmr4953220oao.194.1664399086115; Wed, 28 Sep 2022 14:04:46 -0700 (PDT) MIME-Version: 1.0 References: <20220928063947.299333-1-masahiroy@kernel.org> In-Reply-To: <20220928063947.299333-1-masahiroy@kernel.org> From: Masahiro Yamada Date: Thu, 29 Sep 2022 06:04:09 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 0/8] Unify and , remove EXPORT_DATA_SYMBOL(), faster TRIM_UNUSED_KSYMS To: linux-kbuild@vger.kernel.org Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org, Al Viro , Ard Biesheuvel , Nicolas Pitre , Arnd Bergmann , Luis Chamberlain , Michal Marek , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-modules@vger.kernel.org, llvm@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL 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 Wed, Sep 28, 2022 at 3:41 PM Masahiro Yamada wrote: > > > This patch set refactors EXPORT_SYMBOL, and . > Also, re-implement TRIM_UNUSED_KSYMS in one-pass. > > You can still put EXPORT_SYMBOL() in *.S file, very close to the definition, > but you do not need to care about whether it is a function or a data. > Remove EXPORT_DATA_SYMBOL(). > > In v1, I broke ia64 because of missing distinction between functions and data. > > V2 handles it correctly. > If the exported symbols is a function, KSYMTAB_FUNC is output. > Otherwise, KSYMTAB_DATA is output. > I noticed this patch set is broken in multiple ways. No test is needed. (0day may send various reports, but please ignore them) I will fix the code when I have time. Best Regards Masahiro Yamada