mtd: hyperbus: Fix build failure when only RPCIF_HYPERBUS is enabled
authorVignesh Raghavendra <vigneshr@ti.com>
Mon, 12 Oct 2020 07:09:58 +0000 (12:39 +0530)
committerRichard Weinberger <richard@nod.at>
Mon, 12 Oct 2020 19:12:08 +0000 (21:12 +0200)
commit 5de15b610f78 ("mtd: hyperbus: add Renesas RPC-IF driver") leads
to build failure[1] with COMPILE_TEST and RPCIF_HYPERBUS enabled. This
is because driver needs functions RENESAS_RPCIF which is only buildable
for CONFIG_ARCH_RENESAS.

Fix this by dropping COMPILE_TEST from RPCIF_HYPERBUS Kconfig entry.
This ensures driver can be built only when RENESAS_RPCIF is also
selected.

[1]:
rpc-if.c:(.text+0x20): undefined reference to `rpcif_disable_rpm' ld:
drivers/mtd/hyperbus/rpc-if.o: in function `rpcif_hb_prepare_read':
rpc-if.c:(.text+0xd6): undefined reference to `rpcif_prepare' ld:
drivers/mtd/hyperbus/rpc-if.o: in function `rpcif_hb_read16':
[...]

Fixes: 5de15b610f78 ("mtd: hyperbus: add Renesas RPC-IF driver") leads
Reported-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/hyperbus/Kconfig

index 35b3ab4c8b949d7cafdcb9c5fd574e17107ce8c0..46c7e407e3780ae852f5a1a540181edce42a3fbd 100644 (file)
@@ -24,7 +24,7 @@ config HBMC_AM654
 
 config RPCIF_HYPERBUS
        tristate "Renesas RPC-IF HyperBus driver"
-       depends on RENESAS_RPCIF || COMPILE_TEST
+       depends on RENESAS_RPCIF
        depends on MTD_CFI_BE_BYTE_SWAP
        help
          This option includes Renesas RPC-IF HyperBus support.