riscv: Use __maybe_unused instead of #ifdefs around variable declarations