Commit d635ba42 authored by Yue Haibing's avatar Yue Haibing Committed by Jassi Brar
Browse files

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: e4b1d67e ("mailbox: add Microchip IPC support")
Signed-off-by: default avatarYue Haibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJassi Brar <jassisinghbrar@gmail.com>
parent a5806cd5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment