Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2693513iog; Mon, 27 Jun 2022 00:26:15 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vrGbpS4azMXTFy6iJWGhea03BIdY53YoHZT1Ww6Vh4RIReN56UG798fiUxYQvCL+ac9Czw X-Received: by 2002:a17:903:25ce:b0:16a:2684:8865 with SMTP id jc14-20020a17090325ce00b0016a26848865mr12873242plb.42.1656314775381; Mon, 27 Jun 2022 00:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656314775; cv=none; d=google.com; s=arc-20160816; b=vW0x0KwkdHs7yh3b51zLzVFaJuhMgQi3BkOuTUNJc1mRimWr+HEhmFt+0G4S+cFLkX 2KSEG2Qrhix1Ejvov45aJKZrUjQO17x/s287/z7hlZXI9wKQTCmFOVghMSN038R4I/rG QGPC37IFz92IxnsA6HRq53iOTN+vLg5/qAUaTsILG8Va7ep3ZdWTL4zqov6IqkV72oZj eKHdt0UY03xEsAlPuc8Csr3wCDLpUrmELDOPB/L9L+tbk1NTAStn97YMJNNnpG/VBlKR c+wdMTqH4Ax9J5Lbyc/BqlO+WIugW57nLPMa4f6lhsxmKRsW8yDvRi0qhdfHgp3qes/C oUiQ== 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=SL5pjPNyoGHLMuGUhdq/UIKXG0cTVobG/bq5mwSvP0I=; b=eqq04r+iBe15STOotN011/0fUNFZxBnX1bfSgePYkYbDlcRsypIx9tWjLe6yBloc9m Fj15gU2iEiXrnEXqBIfR2fEJbrRfJ2oaTzwRNdz/0okJKoujg4mPUz6bGdanxn+fYoCD 1YxUJ1kxceFniwhgITEfB+ex35hFIsjCEybnFTTZH0c+dPKDEQDe/ftmi7ctMu2GS72P 4PXZOvZsNr1bUKVQEIjFz916z4dFdIK7kEUdJin+XdJkIOUlbb3MKMfPT32bwK04mevG nVsLixKA8q3r3j47+4QIECwM7ZUU9O6V1nxQfla4hGbhbE7NYOwWo8zDvEA7rlISs/YS ABeA== 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 f5-20020a056a00228500b0052550e859b3si14493239pfe.319.2022.06.27.00.26.03; Mon, 27 Jun 2022 00:26:15 -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 S232619AbiF0G5o (ORCPT + 99 others); Mon, 27 Jun 2022 02:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbiF0G5n (ORCPT ); Mon, 27 Jun 2022 02:57:43 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D35D65F41 for ; Sun, 26 Jun 2022 23:57:41 -0700 (PDT) Received: from linux.localdomain (unknown [113.200.148.30]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9Dx_9ffVLliS7pfAA--.12285S2; Mon, 27 Jun 2022 14:57:36 +0800 (CST) From: Tiezhu Yang To: Huacai Chen Cc: WANG Xuerui , Jiaxun Yang , Xuefeng Li , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] LoongArch: Fix section mismatch warning Date: Mon, 27 Jun 2022 14:57:35 +0800 Message-Id: <1656313055-547-1-git-send-email-yangt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VCY1x0267AKxVW8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUUiiSJUUUU 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 init_numa_memory() is annotated __init and not used by any module, thus don't export it. Remove not needed EXPORT_SYMBOL for init_numa_memory() to fix the following section mismatch warning: MODPOST vmlinux.symvers WARNING: modpost: vmlinux.o(___ksymtab+init_numa_memory+0x0): Section mismatch in reference from the variable __ksymtab_init_numa_memory to the function .init.text:init_numa_memory() The symbol init_numa_memory is exported and annotated __init Fix this by removing the __init annotation of init_numa_memory or drop the export. This is build on Linux 5.19-rc4. Fixes: d4b6f1562a3c ("LoongArch: Add Non-Uniform Memory Access (NUMA) support") Signed-off-by: Tiezhu Yang --- arch/loongarch/kernel/numa.c | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/loongarch/kernel/numa.c b/arch/loongarch/kernel/numa.c index a76f547..a13f925 100644 --- a/arch/loongarch/kernel/numa.c +++ b/arch/loongarch/kernel/numa.c @@ -429,7 +429,6 @@ int __init init_numa_memory(void) return 0; } -EXPORT_SYMBOL(init_numa_memory); #endif void __init paging_init(void) -- 2.1.0