Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2706046iog; Mon, 27 Jun 2022 00:46:12 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uwNJh1cydy0tuow1+0o+Y17TYo2YJgfSnaAHnw8MMLEqruK1lcvTl/R22OZZI1I8BoAX63 X-Received: by 2002:a63:7a57:0:b0:40c:e242:e947 with SMTP id j23-20020a637a57000000b0040ce242e947mr11662384pgn.511.1656315972717; Mon, 27 Jun 2022 00:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656315972; cv=none; d=google.com; s=arc-20160816; b=pT135eKDw/C90aKNZ90WMk7nu4vOG8pXwbiIhTVlGZGFsnFi43XWq6QWcLxQR8C29I 41wc7McTb51EhNnAZAixYVqc7ZPKkNKa+CmuAoyhaZYPuC/zFc5fPuPSOUlsUWHcai/z oM2CdBNt2j1RqkmjwVWXrr0dRrMBPATWnRxdP5iXDSvGIaLhP9ML5q5p5B2t0BtQNBW8 kFT36mvHUlMrrOQ7O1LBjMoiC9rdq7q0/cBmcWLe7GA1oha4sbnREHpDQ7CPqhPuNI82 Wcekzg/4Gv2Tx97mp2Ce01B3VnD2n4X7XQGPkoNHn3cNrUDq1J0zQR4M+VtC1SdGRlo6 Jeig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=GOI5UTdLtxWOhn/AskId0F/+WVqBmCsQ9+QHgmh7eUo=; b=dEqqQHhoVCpevIzt593MUskIJJcRf9VS2nC0E9IOfSzanpdNkvVv4Cj7PWbdeTS1DG hulPV9BpAv6/ozt2yOPcJzsIvPc48Ds5hYpQXSP//a+3y1sGNSG5yo0mnbFDUowAZPs1 JmrAuxCHGOCe32ZMAwB8M+ua+hKB6XcQw99M8nbJE+n6S9AhdH4Aa2l9l4CmRL88qTUy K4GsMYNzbPnP1y6QqhUtSrfann9D2goyYh+75G5XCsNx7EGqSHC9Wt/mYxWUL/jQijTj 6vbbKG6tp32DctIkEcKx/zYgwTGVphiJPhzGu0mwTh202c6wd6CxNoh6ViOc1jsir8Hm 0tUw== 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 q9-20020a17090311c900b0016b81679c2fsi1842492plh.402.2022.06.27.00.46.00; Mon, 27 Jun 2022 00:46:12 -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 S232588AbiF0HHS (ORCPT + 99 others); Mon, 27 Jun 2022 03:07:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232594AbiF0HHR (ORCPT ); Mon, 27 Jun 2022 03:07:17 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D0C265FAC; Mon, 27 Jun 2022 00:07:15 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dxr9giV7lijrtfAA--.5371S2; Mon, 27 Jun 2022 15:07:14 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer Cc: Xuefeng Li , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] MIPS: Loongson64: Fix section mismatch warning Date: Mon, 27 Jun 2022 15:07:13 +0800 Message-Id: <1656313633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z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUjVc_3UUUU U== X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 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