[PATCH v3 2/4] mmc: add COMPILE_TEST to multiple drivers

Mikko Rapeli posted 4 patches 2 weeks, 6 days ago
There is a newer version of this series
[PATCH v3 2/4] mmc: add COMPILE_TEST to multiple drivers
Posted by Mikko Rapeli 2 weeks, 6 days ago
These compile on x86_64 with =y and =m.

Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 drivers/mmc/host/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mmc/host/Kconfig b/drivers/mmc/host/Kconfig
index 7232de1c06887..2db46291ae442 100644
--- a/drivers/mmc/host/Kconfig
+++ b/drivers/mmc/host/Kconfig
@@ -56,7 +56,7 @@ config MMC_STM32_SDMMC
 
 config MMC_PXA
 	tristate "Intel PXA25x/26x/27x Multimedia Card Interface support"
-	depends on ARCH_PXA
+	depends on ARCH_PXA || COMPILE_TEST
 	help
 	  This selects the Intel(R) PXA(R) Multimedia card Interface.
 	  If you have a PXA(R) platform with a Multimedia Card slot,
@@ -608,7 +608,7 @@ config MMC_SDHCI_MSM
 
 config MMC_MXC
 	tristate "Freescale i.MX21/27/31 or MPC512x Multimedia Card support"
-	depends on ARCH_MXC || PPC_MPC512x
+	depends on ARCH_MXC || PPC_MPC512x || COMPILE_TEST
 	help
 	  This selects the Freescale i.MX21, i.MX27, i.MX31 or MPC512x
 	  Multimedia Card Interface. If you have an i.MX or MPC512x platform
@@ -866,7 +866,7 @@ config MMC_DW_PCI
 
 config MMC_DW_ROCKCHIP
 	tristate "Rockchip specific extensions for Synopsys DW Memory Card Interface"
-	depends on MMC_DW && ARCH_ROCKCHIP
+	depends on MMC_DW && ( ARCH_ROCKCHIP  || COMPILE_TEST )
 	select MMC_DW_PLTFM
 	help
 	  This selects support for Rockchip SoC specific extensions to the
@@ -948,7 +948,7 @@ config MMC_USHC
 
 config MMC_WMT
 	tristate "Wondermedia SD/MMC Host Controller support"
-	depends on ARCH_VT8500
+	depends on ARCH_VT8500 || COMPILE_TEST
 	default y
 	help
 	  This selects support for the SD/MMC Host Controller on
-- 
2.34.1
Re: [PATCH v3 2/4] mmc: add COMPILE_TEST to multiple drivers
Posted by Arnd Bergmann 2 weeks, 6 days ago
On Fri, Sep 12, 2025, at 16:22, Mikko Rapeli wrote:
> These compile on x86_64 with =y and =m.
>
> Cc: Arnd Bergmann <arnd@arndb.de>
> Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>

Acked-by: Arnd Bergmann <arnd@arndb.de>

I'll also add this to my randconfig tests to see if something
comes up.

> -	depends on MMC_DW && ARCH_ROCKCHIP
> +	depends on MMC_DW && ( ARCH_ROCKCHIP  || COMPILE_TEST )
>  	select MMC_DW_PLTFM

The whitespace is unusual here, I would make this either

        depends on MMC_DW && (ARCH_ROCKCHIP || COMPILE_TEST)

or

        depends on MMC_DW
        depends on ARCH_ROCKCHIP || COMPILE_TEST


    Arnd