Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp835448rdb; Sat, 7 Oct 2023 00:53:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGn+k3D0jALKJVnwvMJxiGlV39m/76IFPUkp2JSr15jW1eoQEqpGQWhhHnD8YZ3Cxa1hfn4 X-Received: by 2002:a05:620a:4153:b0:775:d492:64e9 with SMTP id k19-20020a05620a415300b00775d49264e9mr9153343qko.41.1696665195085; Sat, 07 Oct 2023 00:53:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696665195; cv=none; d=google.com; s=arc-20160816; b=ayB1o1xvpf1/ul6D5/5rmLttlFiBSU3eAcHrhKqGLRNV7Mcs63zH6Lrm+4Y7edetfU +0ooFNer5OSl+BCq2BRa/0yazlS47QJecibaLdNVRsAUlJelfT0En9yIabJDWnxA35HR ND2y9XUMigOzLkl7LfXqVKrSN1eSpwbeBo8pnofCnXlCWegrXvWt1/Gu9FoHhs9No5ff Tn6chQ3KhulM3KtKQRBf38M/Wd+2NnthEoMgaynwA0OaD8jKukT5VW5Owc89WeTSaYB4 otsFtJtG2b4Chyw+zB4kHTZu/uRhOrZ3tOVTmEPsLOCcGgZZegbPFyUajCQTQYwfrvUL Zl1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=GlZ46Zu5rGWXrlUrFTy0uE+nUTBk5GVUqX5eIPCCEwE=; fh=a98So1aSumNq53/r2dK8ePe5WayPjJOulitRBndSO6E=; b=NFgj4S5IecxNxXtmUtqqFP1HjJwEvojExitiD3JoHKdytqMwelzqmkGItviE8tnkf4 DRSlUzjahbwIQWFO+LJisxsbZwgOUr4dgfYdOUNzrDWC1sDWQrSKB0hFnAvaueWXkka8 j+lANL172xo8NC8azuq4NBs5ikyPbqyQf3NinDLdX3Q9XAXY402Y+lgNqzbsTXlVues3 ANN9D1f7qRysThj52A/6O2B7G1Kexj3A/ftoBqE5bDKl3Wbh1vzef32OdkJmWHRAr6nm G5SFLYGh2QXgacRow8r9+CzNeX+xJ1HRc82LjfA/7XehPasQUAuAApI+cBqvsGsVcqM4 flNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id 6-20020a630006000000b0057d08dac754si5118882pga.671.2023.10.07.00.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:53:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F14398028FD0; Sat, 7 Oct 2023 00:53:13 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343744AbjJGHxK (ORCPT + 99 others); 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 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8Axm+RfDiFl7vIZAA--.57101S2 X-CM-SenderInfo: p2kd03xldq233l6o00pqjv00gofq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:53:14 -0700 (PDT) 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 --- 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; -- 2.39.1