From patchwork Sat Oct 7 07:53:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhaotianrui X-Patchwork-Id: 13412227 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 49673E92FFD for ; Sat, 7 Oct 2023 07:53:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343725AbjJGHxK (ORCPT ); Sat, 7 Oct 2023 03:53:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343713AbjJGHxJ (ORCPT ); Sat, 7 Oct 2023 03:53:09 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 82C2DCA; Sat, 7 Oct 2023 00:53:06 -0700 (PDT) Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8BxbOpgDiFl4LwvAA--.64137S3; Sat, 07 Oct 2023 15:53:04 +0800 (CST) Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8Axm+RfDiFl7vIZAA--.57101S2; Sat, 07 Oct 2023 15:53:04 +0800 (CST) From: Tianrui Zhao To: Randy Dunlap , Stephen Rothwell , Linux Next Mailing List Cc: Linux Kernel Mailing List , "open list : LOONGARCH" , KVM list , zhaotianrui@loongson.cn, maobibo@loongson.cn, Huacai Chen , Paolo Bonzini Subject: [PATCH linux-next] LoongArch: mm: Export symbol for invalid_pud_table. Date: Sat, 7 Oct 2023 15:53:03 +0800 Message-Id: <20231007075303.263407-1-zhaotianrui@loongson.cn> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8Axm+RfDiFl7vIZAA--.57101S2 X-CM-SenderInfo: p2kd03xldq233l6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Export symbol for invalid_pud_table, so it can be used by the files in other directories. And this can resolve the problem caused in: https://lore.kernel.org/lkml/20230927030959.3629941-5-zhaotianrui@loongson.cn/ ERROR: modpost: "invalid_pud_table" [arch/loongarch/kvm/kvm.ko] undefined! Signed-off-by: Tianrui Zhao Reported-by: Randy Dunlap Acked-by: Randy Dunlap Tested-by: Randy Dunlap --- arch/loongarch/mm/init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/loongarch/mm/init.c b/arch/loongarch/mm/init.c index f3fe8c06ba4d..ddf1330c924c 100644 --- a/arch/loongarch/mm/init.c +++ b/arch/loongarch/mm/init.c @@ -240,6 +240,7 @@ pgd_t swapper_pg_dir[_PTRS_PER_PGD] __section(".bss..swapper_pg_dir"); pgd_t invalid_pg_dir[_PTRS_PER_PGD] __page_aligned_bss; #ifndef __PAGETABLE_PUD_FOLDED pud_t invalid_pud_table[PTRS_PER_PUD] __page_aligned_bss; +EXPORT_SYMBOL(invalid_pud_table); #endif #ifndef __PAGETABLE_PMD_FOLDED pmd_t invalid_pmd_table[PTRS_PER_PMD] __page_aligned_bss;