[PATCH] mailbox: omap: Enable COMPILE_TEST for OMAP2+ Mailbox framework support

Martyn Welch posted 1 patch 1 year, 3 months ago
drivers/mailbox/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] mailbox: omap: Enable COMPILE_TEST for OMAP2+ Mailbox framework support
Posted by Martyn Welch 1 year, 3 months ago
The commit ebcf9008a895 ("remoteproc: k3-m4: Add a remoteproc driver for
M4F subsystem") was added with `COMPILE_TEST` as a dependency. It has
been reported that this is causing a failure when running allmodconfig
on x86_64:

  WARNING: unmet direct dependencies detected for OMAP2PLUS_MBOX
    Depends on [n]: MAILBOX [=y] && (ARCH_OMAP2PLUS || ARCH_K3)
    Selected by [m]:
    - TI_K3_M4_REMOTEPROC [=m] && REMOTEPROC [=y] && (ARCH_K3 || COMPILE_TEST [=y])

To resolve this, either `COMPILE_TEST` needs to be removed from
`TI_K3_M4_REMOTEPROC` or added to `OMAP2PLUS_MBOX`. In the interest of
maximising testing, and as `OMAP2PLUS_MBOX` compiles fine on x86_64, add
`COMPILE_TEST` to `OMAP2PLUS_MBOX`.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Martyn Welch <martyn.welch@collabora.com>
---
 drivers/mailbox/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mailbox/Kconfig b/drivers/mailbox/Kconfig
index 4eed97295927..ecaf78beb934 100644
--- a/drivers/mailbox/Kconfig
+++ b/drivers/mailbox/Kconfig
@@ -73,7 +73,7 @@ config ARMADA_37XX_RWTM_MBOX
 
 config OMAP2PLUS_MBOX
 	tristate "OMAP2+ Mailbox framework support"
-	depends on ARCH_OMAP2PLUS || ARCH_K3
+	depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST
 	help
 	  Mailbox implementation for OMAP family chips with hardware for
 	  interprocessor communication involving DSP, IVA1.0 and IVA2 in
-- 
2.45.2