Skip to content

Commit 449c275

Browse files
committed
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>
1 parent 00c2ca8 commit 449c275

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/loongarch/mm/init.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ pgd_t swapper_pg_dir[_PTRS_PER_PGD] __section(".bss..swapper_pg_dir");
240240
pgd_t invalid_pg_dir[_PTRS_PER_PGD] __page_aligned_bss;
241241
#ifndef __PAGETABLE_PUD_FOLDED
242242
pud_t invalid_pud_table[PTRS_PER_PUD] __page_aligned_bss;
243+
EXPORT_SYMBOL(invalid_pud_table);
243244
#endif
244245
#ifndef __PAGETABLE_PMD_FOLDED
245246
pmd_t invalid_pmd_table[PTRS_PER_PMD] __page_aligned_bss;

0 commit comments

Comments
 (0)