Skip to content

Commit 5e5be09

Browse files
guoren83Paul Walmsley
authored andcommitted
riscv: pgtable: Cleanup useless VA_USER_XXX definitions
These marcos are not used after commit b5b4287 ("riscv: mm: Use hint address in mmap if available"). Cleanup VA_USER_XXX definitions in asm/pgtable.h. Fixes: b5b4287 ("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>
1 parent 8632180 commit 5e5be09

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

arch/riscv/include/asm/pgtable.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,6 @@
124124
#ifdef CONFIG_64BIT
125125
#include <asm/pgtable-64.h>
126126

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-
131127
#define MMAP_VA_BITS_64 ((VA_BITS >= VA_BITS_SV48) ? VA_BITS_SV48 : VA_BITS)
132128
#define MMAP_MIN_VA_BITS_64 (VA_BITS_SV39)
133129
#define MMAP_VA_BITS (is_compat_task() ? VA_BITS_SV32 : MMAP_VA_BITS_64)

0 commit comments

Comments
 (0)