Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp1129372imw; Tue, 5 Jul 2022 04:23:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tXRgkagSzTYL+ShlrkD/zKC8JEXRJxfRu/OD+H31LO+rHSQ4llXvIQQ1jWsKPRmPi21cRF X-Received: by 2002:a65:5688:0:b0:3c2:1015:988e with SMTP id v8-20020a655688000000b003c21015988emr28849438pgs.280.1657020215800; Tue, 05 Jul 2022 04:23:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657020215; cv=none; d=google.com; s=arc-20160816; b=V65p87nxt2G3k3wP/cCDMIjd/Xag764sLS+7NHqI13kS505FpMl3t+tB1M9WiKaAFi 3bJoJ121tNmsuzXuJSJinXgZ44BOKJxfgCQmXJDjUoEIWL8p2rhneGPo7E0N66qycSw4 7jrSZnIs/pp8R/aN4vP0nIA7JMFkcoLSIRTNukDi6Txmg/Q6y3MBjES9GYQmDqSZp8UO MEJmwKynJqow5tOKC/PMNHYJXrpq0N6TIugPh+aC3f9HKgZ4lZgZe98LuhyZhoAGrW0F XpaVFD/EV5A56tbfbtr8flLqUbG1uf+W4lMMBgzebYIeKxPfC4k8hawkjOd26tj/iuo8 Sqlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zzS4YfDPI37NrlEPqcD+nerXt0Rl2fuF7BsORagw2rg=; b=q+LV8Y8hywG4/nDjED6jBWdvgLLaoRbAZPfbILnV4fQ7nsbokV+t2geevkQOWYcFZJ Ago8Aws6ZbD2Pttm9vOdDCs22pEJILSWpZwCiydPhnVCHpZAt49PGTVlxCxrfFOPnxv6 IBYH/5hQCR02+8UkQGu3Tim9eeT1CpO+K5+eYTKpAWxD2WKIY0WqNifjlwVVrn34SkE/ w6C+LbhhSX8xf8uM/ZDF/jzL1xTW20WWejAouU72Kyojv3v0aAQ/J5cP4o1FOedNEOtt r9wGYKzKQnugUn5fW6MtjlkmFNfa0ps7fW05taG/QH01RRvgMvAJVPo7k7wffo45tm0e S5vw== 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 b13-20020a056a000ccd00b0051078cc4fd5si13436366pfv.354.2022.07.05.04.23.23; Tue, 05 Jul 2022 04:23:35 -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 S232195AbiGEKks (ORCPT + 99 others); Tue, 5 Jul 2022 06:40:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230082AbiGEKkp (ORCPT ); Tue, 5 Jul 2022 06:40:45 -0400 Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 62B3E15727; Tue, 5 Jul 2022 03:40:44 -0700 (PDT) Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1o8fz0-0002Jv-03; Tue, 05 Jul 2022 12:40:42 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 095BEC0230; Tue, 5 Jul 2022 12:24:43 +0200 (CEST) Date: Tue, 5 Jul 2022 12:24:42 +0200 From: Thomas Bogendoerfer To: Tiezhu Yang Cc: Xuefeng Li , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] MIPS: Loongson64: Fix section mismatch warning Message-ID: <20220705102442.GG9951@alpha.franken.de> References: <1656313633-1713-1-git-send-email-yangtiezhu@loongson.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1656313633-1713-1-git-send-email-yangtiezhu@loongson.cn> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_HELO_PASS,SPF_NONE,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 On Mon, Jun 27, 2022 at 03:07:13PM +0800, 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) > { > -- > 2.1.0 applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]