riscv: Use __maybe_unused instead of #ifdefs around variable declarations
authorAlexandre Ghiti <alex@ghiti.fr>
Fri, 23 Jul 2021 13:01:26 +0000 (15:01 +0200)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Thu, 12 Aug 2021 05:41:31 +0000 (22:41 -0700)
commit6f3e5fd241c33d2407f7aaa930b141af6ad7c35b
tree36b1d4369fa861553d17a6f7a13569442dfdbb0c
parent526f83df1d83b9c95e571ea5d4dff12be1b215ec
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>
arch/riscv/mm/init.c