summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/mm/init.c
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2023-10-18 02:42:52 +0200
committerHuacai Chen <chenhuacai@loongson.cn>2023-10-18 02:42:52 +0200
commit449c2756c2323c9e32b2a2fa9c8b59ce91b5819d (patch)
tree4ecf795ed41d3ffcf251219122905f6a04d1fcf4 /arch/loongarch/mm/init.c
parentLoongArch: Use SYM_CODE_* to annotate exception handlers (diff)
downloadlinux-449c2756c2323c9e32b2a2fa9c8b59ce91b5819d.tar.xz
linux-449c2756c2323c9e32b2a2fa9c8b59ce91b5819d.zip
LoongArch: Export symbol invalid_pud_table for modules building
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 <rdunlap@infradead.org> Acked-by: Randy Dunlap <rdunlap@infradead.org> Tested-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn> Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/mm/init.c')
-rw-r--r--arch/loongarch/mm/init.c1
1 files changed, 1 insertions, 0 deletions
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;