Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2653397iog; Sun, 26 Jun 2022 23:18:47 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tkz5ZS2Rj9e3o7InE0UHI/LXBC+tYUiNpDsEvxhjJIa/opdeOw3vLP+5NNmf3zh52sQlpa X-Received: by 2002:a17:902:8689:b0:14e:f1a4:d894 with SMTP id g9-20020a170902868900b0014ef1a4d894mr13325106plo.65.1656310727169; Sun, 26 Jun 2022 23:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656310727; cv=none; d=google.com; s=arc-20160816; b=x7wfRzBu55DNu24cAZYKzUEyG+7CgC036X1hXNPPjGVghQT770PRU73+asZQv3RUp5 7R7dVVtfDcNMiBvWhw1su/IY7BdeLrDtGieQSjq0qez8KGmZMd8YWFUOdlUFt5ZbP7tj Gkdrzr7uZ0tyVt2Rhtm3S6tgo1T2bTW51uPvq66JBUv6IZo/Ni3C0MMqoC46Y8RChzri kp5pzHKh/3feDW8whk+De7Hu5aswLUNrA4TTUcEVvxYnWBBU5CIEa02vo7YzUqeGC9jO F+/lNIsz8gIJ/USgnmVwtH8vdSD3fbbqiGEnOrMfR8pRaMbpeXvI8GNK9e38bPWQOZYF SgsA== 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=TH8NW8JeWsZjpJIIhjSg+j6QjrGD/dUBvGIHvYMXVPM=; b=JEOFm4igKCiqg+k239//TVEKUwWHmcvjzxLJioYKQ0IkVs6yHysDjgDsp7RYlvZVDc TSsKq4NU06kdB2rEy34fich/6FlR74hrvBtXII1tsFTQOz7B9MMvH4uPW9AkRyMXzXQa Ti40BLSOa2C+I/fmnsMULyw31w6YhY0BjtZpnwHUwWE4VTwLSk63za+d0fxzmoxRQ5Nx e61RZlxW3KcAGDLhdMrlo0q3wghN3LiU+vs+OtIQUlmhwbsCwth8aIDUNOx6FYyjIGas Z0olnhwILYd/29iCwMnNOrJTlpvoy71FGPSMJTi+YvBGjwI1ZFokLEztrLXTxdmcuy1R gbyA== 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 c14-20020a170903234e00b00154319ca2ddsi15978766plh.397.2022.06.26.23.18.35; Sun, 26 Jun 2022 23:18:47 -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 S232287AbiF0GPJ (ORCPT + 99 others); Mon, 27 Jun 2022 02:15:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229850AbiF0GPI (ORCPT ); Mon, 27 Jun 2022 02:15:08 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 70B8C2718; Sun, 26 Jun 2022 23:15:04 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9DxH9_lSrlisbNfAA--.12536S2; Mon, 27 Jun 2022 14:15:01 +0800 (CST) From: Tiezhu Yang To: Thomas Bogendoerfer Cc: Xuefeng Li , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] MIPS: Loongson64: Fix section mismatch warning Date: Mon, 27 Jun 2022 14:15:01 +0800 Message-Id: <1656310501-29355-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf9DxH9_lSrlisbNfAA--.12536S2 X-Coremail-Antispam: 1UD129KBjvJXoW7Xr4UCF45CF4ruFW3GF43GFg_yoW8Jr1xpa y8Aw1DWr4UKr4kJF1fCry8Z34xJFyrWFZ3A39rCryDW39rur95Zr1xCF4rZFyDtF4FyF4r XF1fGrs5u3W8A37anT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUUkl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26r4j6ryUM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v26r xl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj 6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVW8JVWxJwAm72CE4IkC6x0Yz7v_Jr 0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7MxkIecxEwVAFwVW8 AwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r 1j6r18MI8I3I0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_JF0_Jw1lIxkGc2Ij 64vIr41lIxAIcVC0I7IYx2IY67AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr 0_Gr1lIxAIcVCF04k26cxKx2IYs7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1l IxAIcVC2z280aVCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUUyxRDUUUU 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. Signed-off-by: Tiezhu Yang --- 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