projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
526f83d
)
riscv: Use __maybe_unused instead of #ifdefs around variable declarations
author
Alexandre Ghiti
<alex@ghiti.fr>
Fri, 23 Jul 2021 13:01:26 +0000
(15:01 +0200)
committer
Palmer Dabbelt
<palmerdabbelt@google.com>
Thu, 12 Aug 2021 05:41:31 +0000
(22:41 -0700)
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>
arch/riscv/mm/init.c
patch
|
blob
|
history
diff --git
a/arch/riscv/mm/init.c
b/arch/riscv/mm/init.c
index 83d0ed915914967952443049a253454bf98033ee..a456b5a68d9906b5c095872ce2f8935904cd8024 100644
(file)
--- 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;