Skip to content

Commit d635ba4

Browse files
Yue HaibingJassi Brar
authored andcommitted
mailbox: mchp-ipc-sbi: Fix COMPILE_TEST build error
If COMPILE_TEST is y but RISCV_SBI is n, build fails: drivers/mailbox/mailbox-mchp-ipc-sbi.c: In function 'mchp_ipc_sbi_chan_send': drivers/mailbox/mailbox-mchp-ipc-sbi.c:119:23: error: storage size of 'ret' isn't known struct sbiret ret; ^~~ CC drivers/nvmem/lpc18xx_otp.o drivers/mailbox/mailbox-mchp-ipc-sbi.c:121:15: error: implicit declaration of function 'sbi_ecall' [-Werror=implicit-function-declaration] ret = sbi_ecall(SBI_EXT_MICROCHIP_TECHNOLOGY, command, channel, ^~~~~~~~~ move COMPILE_TEST to ARCH_MICROCHIP dependency as other drivers. Fixes: e4b1d67 ("mailbox: add Microchip IPC support") Signed-off-by: Yue Haibing <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent a5806cd commit d635ba4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/mailbox/Kconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ config POLARFIRE_SOC_MAILBOX
191191

192192
config MCHP_SBI_IPC_MBOX
193193
tristate "Microchip Inter-processor Communication (IPC) SBI driver"
194-
depends on RISCV_SBI || COMPILE_TEST
195-
depends on ARCH_MICROCHIP
194+
depends on RISCV_SBI
195+
depends on ARCH_MICROCHIP || COMPILE_TEST
196196
help
197197
Mailbox implementation for Microchip devices with an
198198
Inter-process communication (IPC) controller.

0 commit comments

Comments
 (0)