From mboxrd@z Thu Jan 1 00:00:00 1970 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 1C3E3C4332F for ; Sun, 29 Oct 2023 23:31:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231909AbjJ2XbG (ORCPT ); Sun, 29 Oct 2023 19:31:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232010AbjJ2Xam (ORCPT ); Sun, 29 Oct 2023 19:30:42 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D96182D50; Sun, 29 Oct 2023 15:58:56 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 773E3C116B0; Sun, 29 Oct 2023 22:58:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1698620318; bh=j2JBGih18O6OPWJGpMBPuhz/exYJMtXqF1apiFSql0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VpJS+v1EGxTD7M/U9C6A0S/6CORJ9LG5bCsEe2ox8ofmfwDP1f/Uh49WaC5QUa90l 7+yAbWNTmav8kRZ19KpFQyVYzLOOoYGANPvnp3EWZ/6DsOLIr3ofqYqCG1Xgm/CYfe ESaojSYpjJApcEa3pgomChucQ05zoMeqBLU8PNZCZb52m/ekjOHe0Vkt/A5vdjpNbJ vmj5hJTDuj+W+H2k8Duo5cLzs9hlt7lt6VyJLZTBJGwVCs1/yjye6T5L327e0Ex9oH xkyFXnm7f4ZmQecKCiZVObvmc5wtZ1l13rEpwPBcm0bK8xFjkB7EC45EqjuTREoa+/ IbNpubmom/Arg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Huacai Chen , Randy Dunlap , Tianrui Zhao , Sasha Levin , chenhuacai@kernel.org, akpm@linux-foundation.org, chenfeiyang@loongson.cn, arnd@arndb.de, maobibo@loongson.cn, loongarch@lists.linux.dev Subject: [PATCH AUTOSEL 6.1 30/39] LoongArch: Export symbol invalid_pud_table for modules building Date: Sun, 29 Oct 2023 18:57:02 -0400 Message-ID: <20231029225740.790936-30-sashal@kernel.org> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231029225740.790936-1-sashal@kernel.org> References: <20231029225740.790936-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.60 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Huacai Chen [ Upstream commit 449c2756c2323c9e32b2a2fa9c8b59ce91b5819d ] Export symbol invalid_pud_table for modules building (such as the KVM module) if 4-level page tables enabled. Otherwise we get: ERROR: modpost: "invalid_pud_table" [arch/loongarch/kvm/kvm.ko] undefined! Reported-by: Randy Dunlap Acked-by: Randy Dunlap Tested-by: Randy Dunlap Signed-off-by: Tianrui Zhao Signed-off-by: Huacai Chen Signed-off-by: Sasha Levin --- 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 c7e9c96719fa3..c74da7770e39e 100644 --- a/arch/loongarch/mm/init.c +++ b/arch/loongarch/mm/init.c @@ -228,6 +228,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.42.0