From nobody Fri Oct 24 20:32:36 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DB3FC3276C for ; Mon, 15 Aug 2022 22:38:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351093AbiHOWhg (ORCPT ); Mon, 15 Aug 2022 18:37:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350159AbiHOWb2 (ORCPT ); Mon, 15 Aug 2022 18:31:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D1CC719A0; Mon, 15 Aug 2022 12:48:28 -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 D8CF3B81144; Mon, 15 Aug 2022 19:48:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 200A9C433C1; Mon, 15 Aug 2022 19:48:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660592905; bh=tFMruD26R0zJmsKIkmvOkf54yAsxhFD3bcYpfWVgLpc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gI2t37zLghxy12bUcdRePOLGLUGjJQqbA3YLsC7VAqFJOZHWGc4kbm7D9//FwEq8T dYuOTNYQB/MDKiCFTL5cCyGM+xuQYVlBMv7bI52C35CQJECczFR8DFm7lo8JQEzVXb S6sU+VBQ3yKrH0M5EMTuGe6m5CI4zZrZ5wXJ63A0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tiezhu Yang , Huacai Chen , Thomas Bogendoerfer , Sasha Levin Subject: [PATCH 5.18 0864/1095] MIPS: Loongson64: Fix section mismatch warning Date: Mon, 15 Aug 2022 20:04:23 +0200 Message-Id: <20220815180505.100421388@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Tiezhu Yang [ Upstream commit 08472f6ebdc23334ad11dcd761d2d52c32897793 ] 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.tex= t: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 directo= ry") Signed-off-by: Tiezhu Yang Reviewed-by: Huacai Chen Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- 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 69a533148efd..8f61e93c0c5b 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); =20 pg_data_t * __init arch_alloc_nodedata(int nid) { --=20 2.35.1