riscv: Cleanup sbi function stubs when RISCV_SBI disabled
authorKefeng Wang <wangkefeng.wang@huawei.com>
Thu, 26 Nov 2020 02:40:38 +0000 (10:40 +0800)
committerPalmer Dabbelt <palmerdabbelt@google.com>
Fri, 8 Jan 2021 01:19:17 +0000 (17:19 -0800)
commit641e8cd2cbf0451e118fca33d5db10124dd87458
treea51c0c5752fe9b700e2fbe14ade95d6369b7b8ae
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62
riscv: Cleanup sbi function stubs when RISCV_SBI disabled

Fix sbi_init() function declaration mismatch between RISCV_SBI
enable and disable, as it always returned 0, make it void function.

Drop some stubs which won't be used if RISCV_SBI disabled.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Atish Patra <atish.patra@wdc.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
arch/riscv/include/asm/sbi.h
arch/riscv/kernel/sbi.c
arch/riscv/kernel/setup.c