Re: [PATCH 11/11] mmc: host: Enable compile testing of multiple drivers

From: Michał Mirosław
Date: Wed Sep 02 2020 - 17:32:41 EST


On Wed, Sep 02, 2020 at 09:36:58PM +0200, Krzysztof Kozlowski wrote:
> Multiple MMC host controller driver can be compile tested as they do not
> depend on architecture specific headers.
[...]
> --- a/drivers/mmc/host/Kconfig
> +++ b/drivers/mmc/host/Kconfig
> @@ -178,7 +178,7 @@ config MMC_SDHCI_OF_AT91
[...]
> config MMC_MESON_GX
> tristate "Amlogic S905/GX*/AXG SD/MMC Host Controller support"
> - depends on ARCH_MESON && MMC
> + depends on MMC
> + depends on ARCH_MESON|| COMPILE_TEST
[...]
> config MMC_MOXART
> tristate "MOXART SD/MMC Host Controller support"
> - depends on ARCH_MOXART && MMC
> + depends on MMC
> + depends on ARCH_MOXART || COMPILE_TEST
[...]

You can drop 'MMC' from depends as the whole tree is under 'if MMC' already.

Best Regards,
Michał Mirosław