diff options
author | Alexandre Ghiti <alex@ghiti.fr> | 2021-07-23 15:01:26 +0200 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-08-11 22:41:31 -0700 |
commit | 6f3e5fd241c33d2407f7aaa930b141af6ad7c35b (patch) | |
tree | 36b1d4369fa861553d17a6f7a13569442dfdbb0c /arch/riscv | |
parent | 526f83df1d83b9c95e571ea5d4dff12be1b215ec (diff) | |
download | linux-stable-6f3e5fd241c33d2407f7aaa930b141af6ad7c35b.tar.gz linux-stable-6f3e5fd241c33d2407f7aaa930b141af6ad7c35b.tar.bz2 linux-stable-6f3e5fd241c33d2407f7aaa930b141af6ad7c35b.zip |
riscv: Use __maybe_unused instead of #ifdefs around variable declarations
This allows to simplify the code and make it more readable.
Signed-off-by: Alexandre Ghiti <alex@ghiti.fr>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv')
-rw-r--r-- | arch/riscv/mm/init.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 83d0ed915914..a456b5a68d99 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -532,9 +532,7 @@ static void __init create_kernel_page_table(pgd_t *pgdir, bool early) asmlinkage void __init setup_vm(uintptr_t dtb_pa) { uintptr_t __maybe_unused pa; -#ifndef __PAGETABLE_PMD_FOLDED - pmd_t fix_bmap_spmd, fix_bmap_epmd; -#endif + pmd_t __maybe_unused fix_bmap_spmd, fix_bmap_epmd; kernel_map.virt_addr = KERNEL_LINK_ADDR; |