RISC-V: Use a less ugly workaround for unused variable warnings
authorPalmer Dabbelt <palmer@sifive.com>
Tue, 28 Aug 2018 16:37:16 +0000 (09:37 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 28 Aug 2018 19:58:36 +0000 (12:58 -0700)
commit47d80a68f10d3290204a12f7836a9a8190dfc327
treeca38c2a9ebcfe536e51fcea23628834fb86fac8f
parent0ce5671c4450527f90d2bfb31302f78580587983
RISC-V: Use a less ugly workaround for unused variable warnings

Thanks to Christoph Hellwig for pointing out a cleaner way to do this,
as my approach was quite ugly.

CC: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/sys_riscv.c