Message ID | 20231007075303.263407-1-zhaotianrui@loongson.cn |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp799556vqo; Sat, 7 Oct 2023 00:53:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHgskhtRhXO4f+/KsBxJhhzFKmhWt6Ylx/T4zWQe+LMMocwGbF7MwDtHDm5/MbXm85DO/MJ X-Received: by 2002:a05:6870:3046:b0:1ba:989b:ca65 with SMTP id u6-20020a056870304600b001ba989bca65mr11805579oau.19.1696665214904; Sat, 07 Oct 2023 00:53:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696665214; cv=none; d=google.com; s=arc-20160816; b=iPnScamslwLyar6sytyOB+Tb5XD/ThWoYEVHkn8wugc0/CuDvpasEpGLYhVESGKlnA iMvG+Yqvoj6HswFc7B0QUNir66GI3HwCnWPZOj4ujKyHF4OFgaLdXE8JGtF+1qJIrVba J36UKndh1LCdMHXYGyPZKgSwnWd2ZGeZ0+CV0aZkD8ZqF+14/z/LY1oDto0kB3n8hiGF MMqfNqafpWtWPoju2/Y0wh0h6eM8dfOpZFXTN9dOwkPblMKd85/UEHPRYZFFrvQNVdKN fD7GHe230BMFszNOMY6GqwfbfIQdaN5ZNvACpdA4oo/UOupOjuCxaRob0SzujRTf6FkC fUEw== 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 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id az1-20020a056a02004100b00578aa7b05b5si5244507pgb.742.2023.10.07.00.53.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 00:53:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id AF9578038B05; Sat, 7 Oct 2023 00:53:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343737AbjJGHxL (ORCPT <rfc822;ezelljr.billy@gmail.com> + 18 others); Sat, 7 Oct 2023 03:53:11 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <zhaotianrui@loongson.cn> To: Randy Dunlap <rdunlap@infradead.org>, Stephen Rothwell <sfr@canb.auug.org.au>, Linux Next Mailing List <linux-next@vger.kernel.org> Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>, "open list : LOONGARCH" <loongarch@lists.linux.dev>, KVM list <kvm@vger.kernel.org>, zhaotianrui@loongson.cn, maobibo@loongson.cn, Huacai Chen <chenhuacai@kernel.org>, Paolo Bonzini <pbonzini@redhat.com> 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=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 07 Oct 2023 00:53:32 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1779082424413236063 X-GMAIL-MSGID: 1779082424413236063 |
Series |
[linux-next] LoongArch: mm: Export symbol for invalid_pud_table.
|
|
Commit Message
zhaotianrui
Oct. 7, 2023, 7:53 a.m. UTC
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 <zhaotianrui@loongson.cn>
---
arch/loongarch/mm/init.c | 1 +
1 file changed, 1 insertion(+)
Comments
Queued for loongarch-next (though I prepared a similar patch), thanks. Huacai On Sat, Oct 7, 2023 at 3:53 PM Tianrui Zhao <zhaotianrui@loongson.cn> wrote: > > 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 <zhaotianrui@loongson.cn> > --- > 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 >
On 10/7/23 00:53, Tianrui Zhao wrote: > 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 <zhaotianrui@loongson.cn> Reported-by: Randy Dunlap <rdunlap@infradead.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Thanks. > --- > 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;
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;