Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

riscv: pgtable: Cleanup useless VA_USER_XXX definitions

These marcos are not used after commit b5b4287accd7 ("riscv: mm: Use
hint address in mmap if available"). Cleanup VA_USER_XXX definitions
in asm/pgtable.h.

Fixes: b5b4287accd7 ("riscv: mm: Use hint address in mmap if available")
Signed-off-by: Guo Ren (Alibaba DAMO Academy) <guoren@kernel.org>
Reviewed-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20251201005850.702569-1-guoren@kernel.org
Signed-off-by: Paul Walmsley <pjw@kernel.org>

authored by

Guo Ren (Alibaba DAMO Academy) and committed by
Paul Walmsley
5e5be092 8632180d

-4
-4
arch/riscv/include/asm/pgtable.h
··· 124 124 #ifdef CONFIG_64BIT 125 125 #include <asm/pgtable-64.h> 126 126 127 - #define VA_USER_SV39 (UL(1) << (VA_BITS_SV39 - 1)) 128 - #define VA_USER_SV48 (UL(1) << (VA_BITS_SV48 - 1)) 129 - #define VA_USER_SV57 (UL(1) << (VA_BITS_SV57 - 1)) 130 - 131 127 #define MMAP_VA_BITS_64 ((VA_BITS >= VA_BITS_SV48) ? VA_BITS_SV48 : VA_BITS) 132 128 #define MMAP_MIN_VA_BITS_64 (VA_BITS_SV39) 133 129 #define MMAP_VA_BITS (is_compat_task() ? VA_BITS_SV32 : MMAP_VA_BITS_64)