Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3479204iog; Mon, 27 Jun 2022 17:32:09 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uAenSXxiKKspoIWy2mHMfh0Ferp/HZj8/R3rKWDWwusEHp9NdjZMWe4hHddTOM9HIlDrR7 X-Received: by 2002:a17:907:2d2b:b0:726:a628:d1ae with SMTP id gs43-20020a1709072d2b00b00726a628d1aemr7613940ejc.336.1656376329587; Mon, 27 Jun 2022 17:32:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656376329; cv=none; d=google.com; s=arc-20160816; b=JeJfvDfeiEO91WXH8BDAdxmMUobOQNFRXSgUuNKxoAnBKGoDmWAWLVKNMAM67BspcW rk2bFArfymKVtFI1CTOMgKaH/Y+QnsXDc107m/uZmyqNaor8DXrzgxVr/AZ6bAd2ATg6 GAKxsCVwj30W9JjCR6PDpnsgDnLNwu+Kds6S0w87sngRNm+bvZNAeCMajwnaCEd+qjNe rj2p7L6lS5uuW9bxw5eIc6eV0VDi+YCHYdQE4c00e3GmL6X/jDkOz9sGB5n/k9CoHLLN M6kYVlPxylSezb1jcDHSif3KB1vLAnASqNl7c19hJ2Ytg10DTz2rb5Y5QcNCoAY4Fdm9 4m/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject; bh=IhC4hHmWwIFa60KaYWVpsEoMTfUrwyzfjURDWMUE5nE=; b=zQFn4A24z9dwljskZVHidglCEtPAUUZDLz3CEuCl+/d6VvzmGT5dVJ5fua6KIUA3D6 EnYZK+gU2wJe/xdytM7KUoW2ZfFrpdQeJbiMPKdEYmOpac9Sp7hgD0uWThcbwnBggs+r XVBZ1sgNny8ceF60VDuP1MdjYRQJ6nqdpaL9kMMcAuE1CevSgZFr4oRKaafmiuCf6UQy hu6mMvIYJE2zCw7aioPMJngzsr/N9WOEjLHZykPDfRwxnACZiDAwvRvYXzX8dgR5Rh2x +j1ekXcxRqOm4bpoSinqnn9ooNEn/viel4U1PjIhybaMAZ4FhLnSsX9MmQgOgDIcTrfG 7xaw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q14-20020a170906a08e00b007103c7570ecsi12733796ejy.188.2022.06.27.17.31.44; Mon, 27 Jun 2022 17:32:09 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239360AbiF1AO4 (ORCPT + 99 others); Mon, 27 Jun 2022 20:14:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229512AbiF1AOy (ORCPT ); Mon, 27 Jun 2022 20:14:54 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id DC8A6636F; Mon, 27 Jun 2022 17:14:52 -0700 (PDT) Received: from [10.130.0.135] (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxb0_1R7pixpBgAA--.6993S3; Tue, 28 Jun 2022 08:14:46 +0800 (CST) Subject: Re: [PATCH v2] MIPS: Loongson64: Fix section mismatch warning To: Thomas Bogendoerfer References: <1656313633-1713-1-git-send-email-yangtiezhu@loongson.cn> Cc: Xuefeng Li , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Masahiro Yamada From: Tiezhu Yang Message-ID: Date: Tue, 28 Jun 2022 08:14:45 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <1656313633-1713-1-git-send-email-yangtiezhu@loongson.cn> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-CM-TRANSID: AQAAf9Dxb0_1R7pixpBgAA--.6993S3 X-Coremail-Antispam: 1UD129KBjvJXoWxJF15uF4xWFyrGF4ktrWDurg_yoW8ArWxpa yrCw4UWr4rKr4kJ3Z3GryUZryxJa4rGFZ3A3y7CrykXrZFg3sYvr1IkF48ZFyDtr1FyF4r XFn3WrZ5Z3W0yrDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUvm14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26r1j6r1xM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j 6F4UM28EF7xvwVC2z280aVAFwI0_Cr0_Gr1UM28EF7xvwVC2z280aVCY1x0267AKxVW8Jr 0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IY64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7Mxk0xIA0c2IEe2xFo4CE bIxvr21lc2xSY4AK67AK6w1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr 1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE 14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7 IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrZr1j6s0DMIIF0xvE x4A2jsIE14v26r1j6r4UMIIF0xvEx4A2jsIEc7CjxVAFwI0_Jr0_GrUvcSsGvfC2KfnxnU UI43ZEXa7VUU_cTDUUUUU== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Cc Masahiro Yamada On 06/27/2022 03:07 PM, Tiezhu Yang wrote: > prom_init_numa_memory() is annotated __init and not used by any module, > thus don't export it. > > Remove not needed EXPORT_SYMBOL for prom_init_numa_memory() to fix the > following section mismatch warning: > > LD vmlinux.o > MODPOST vmlinux.symvers > WARNING: modpost: vmlinux.o(___ksymtab+prom_init_numa_memory+0x0): Section mismatch in reference > from the variable __ksymtab_prom_init_numa_memory to the function .init.text:prom_init_numa_memory() > The symbol prom_init_numa_memory is exported and annotated __init > Fix this by removing the __init annotation of prom_init_numa_memory or drop the export. > > This is build on Linux 5.19-rc4. > > Fixes: 6fbde6b492df ("MIPS: Loongson64: Move files to the top-level directory") > Signed-off-by: Tiezhu Yang > --- > > v2: update the commit message and add Fixes tag > > arch/mips/loongson64/numa.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/mips/loongson64/numa.c b/arch/mips/loongson64/numa.c > index 69a5331..8f61e93 100644 > --- a/arch/mips/loongson64/numa.c > +++ b/arch/mips/loongson64/numa.c > @@ -196,7 +196,6 @@ void __init prom_init_numa_memory(void) > pr_info("CP0_PageGrain: CP0 5.1 (0x%x)\n", read_c0_pagegrain()); > prom_meminit(); > } > -EXPORT_SYMBOL(prom_init_numa_memory); > > pg_data_t * __init arch_alloc_nodedata(int nid) > { > Hi Masahiro, Please review this patch, I think it is related with the following issue, thank you. https://lore.kernel.org/lkml/CAHk-=wgcsUU-TNoLS7Q6YF3RCSVAKwNM7gFOwqnPQTiU_oGEWA@mail.gmail.com/ Thanks, Tiezhu