All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: host: fix depends for MMC_MESON_GX w/ COMPILE_TEST
@ 2020-09-25 16:43 ` Randy Dunlap
  0 siblings, 0 replies; 9+ messages in thread
From: Randy Dunlap @ 2020-09-25 16:43 UTC (permalink / raw)
  To: linux-kernel
  Cc: Randy Dunlap, Kevin Hilman, linux-amlogic, linux-arm-kernel,
	Ulf Hansson, linux-mmc, Krzysztof Kozlowski

Fix build errors for meson-gx-mmc.c when CONFIG_COMMON_CLK is not
set/enabled. This can happen when COMPILE_TEST is set/enabled.

ERROR: modpost: "clk_divider_ops" [drivers/mmc/host/meson-gx-mmc.ko] undefined!
ERROR: modpost: "devm_clk_register" [drivers/mmc/host/meson-gx-mmc.ko] undefined!
ERROR: modpost: "clk_mux_ops" [drivers/mmc/host/meson-gx-mmc.ko] undefined!
ERROR: modpost: "__clk_get_name" [drivers/mmc/host/meson-gx-mmc.ko] undefined!

Fixes: 54d8454436a2 ("mmc: host: Enable compile testing of multiple drivers")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: linux-amlogic@lists.infradead.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: Ulf Hansson <ulf.hansson@linaro.org>
Cc: linux-mmc@vger.kernel.org
Cc: Krzysztof Kozlowski <krzk@kernel.org>
---
 drivers/mmc/host/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20200925.orig/drivers/mmc/host/Kconfig
+++ linux-next-20200925/drivers/mmc/host/Kconfig
@@ -425,6 +425,7 @@ config MMC_SDHCI_IPROC
 config MMC_MESON_GX
 	tristate "Amlogic S905/GX*/AXG SD/MMC Host Controller support"
 	depends on ARCH_MESON|| COMPILE_TEST
+	depends on COMMON_CLK
 	help
 	  This selects support for the Amlogic SD/MMC Host Controller
 	  found on the S905/GX*/AXG family of SoCs.  This controller is

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-09-28 10:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-25 16:43 [PATCH] mmc: host: fix depends for MMC_MESON_GX w/ COMPILE_TEST Randy Dunlap
2020-09-25 16:43 ` Randy Dunlap
2020-09-25 16:43 ` Randy Dunlap
2020-09-25 17:04 ` Krzysztof Kozlowski
2020-09-25 17:04   ` Krzysztof Kozlowski
2020-09-25 17:04   ` Krzysztof Kozlowski
2020-09-28 10:34 ` Ulf Hansson
2020-09-28 10:34   ` Ulf Hansson
2020-09-28 10:34   ` Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.