Skip to content

Commit 13953e3

Browse files
Dawei Lipalmer-dabbelt
authored andcommitted
riscv: Remove redundant CONFIG_64BIT from pgtable_l{4,5}_enabled
IS_ENABLED(CONFIG_64BIT) in initialization of pgtable_l{4,5}_enabled is redundant, remove it. Signed-off-by: Dawei Li <dawei.li@shingroup.cn> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com> Link: https://lore.kernel.org/r/20240320064712.442579-2-dawei.li@shingroup.cn Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
1 parent 4202f62 commit 13953e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

arch/riscv/mm/init.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ u64 satp_mode __ro_after_init = SATP_MODE_32;
4949
EXPORT_SYMBOL(satp_mode);
5050

5151
#ifdef CONFIG_64BIT
52-
bool pgtable_l4_enabled = IS_ENABLED(CONFIG_64BIT) && !IS_ENABLED(CONFIG_XIP_KERNEL);
53-
bool pgtable_l5_enabled = IS_ENABLED(CONFIG_64BIT) && !IS_ENABLED(CONFIG_XIP_KERNEL);
52+
bool pgtable_l4_enabled = !IS_ENABLED(CONFIG_XIP_KERNEL);
53+
bool pgtable_l5_enabled = !IS_ENABLED(CONFIG_XIP_KERNEL);
5454
EXPORT_SYMBOL(pgtable_l4_enabled);
5555
EXPORT_SYMBOL(pgtable_l5_enabled);
5656
#endif

0 commit comments

Comments
 (0)