Skip to content

Commit

Permalink
fix: riscv: mm: rv64ilp32 undefined reference to 'p4d_offset'
Browse files Browse the repository at this point in the history
riscv64-unknown-elf-ld: arch/riscv/mm/fault.o: in function `.L0 ':
fault.c:(.text+0x326): undefined reference to `p4d_offset'
riscv64-unknown-elf-ld: fault.c:(.text+0x33c): undefined reference to `pud_offset'
riscv64-unknown-elf-ld: arch/riscv/mm/pageattr.o: in function `.L0 ':
pageattr.c:(.text+0x3ec): undefined reference to `p4d_offset'
riscv64-unknown-elf-ld: pageattr.c:(.text+0x3fe): undefined reference to `pud_offset'
riscv64-unknown-elf-ld: mm/gup.o: in function `.L0 ':
gup.c:(.text+0x1230): undefined reference to `p4d_offset'
riscv64-unknown-elf-ld: gup.c:(.text+0x1244): undefined reference to `pud_offset'
riscv64-unknown-elf-ld: gup.c:(.text+0x138c): undefined reference to `p4d_offset'
riscv64-unknown-elf-ld: mm/memory.o: in function `.L11':
memory.c:(.text+0x6c): undefined reference to `p4d_offset'
riscv64-unknown-elf-ld: memory.c:(.text+0x76): undefined reference to `pud_offset'

Signed-off-by: Han Gao <[email protected]>
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Aug 13, 2024
1 parent 84fc6e1 commit d9252e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/riscv/mm/pgtable.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int ptep_test_and_clear_young(struct vm_area_struct *vma,
}
EXPORT_SYMBOL_GPL(ptep_test_and_clear_young);

#ifdef CONFIG_64BIT
#if IS_ENABLED(CONFIG_64BIT) || (IS_ENABLED(CONFIG_ARCH_RV64ILP32) && !IS_ENABLED(CONFIG_MMU_SV32))
pud_t *pud_offset(p4d_t *p4d, unsigned long address)
{
if (pgtable_l4_enabled)
Expand Down

0 comments on commit d9252e6

Please sign in to comment.