All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MIPS: ralink: define stubs for clk_set_parent to fix compile testing
@ 2021-03-16 17:57 Krzysztof Kozlowski
  2021-03-16 18:01 ` John Crispin
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Krzysztof Kozlowski @ 2021-03-16 17:57 UTC (permalink / raw)
  To: John Crispin, Thomas Bogendoerfer, linux-mips, linux-kernel
  Cc: thierry.reding, linux-tegra, balbi, linux-usb, digetx,
	Krzysztof Kozlowski, kernel test robot

The Ralink MIPS platform does not use Common Clock Framework and does
not define certain clock operations leading to compile test failures:

    /usr/bin/mips-linux-gnu-ld: drivers/usb/phy/phy-tegra-usb.o: in function `tegra_usb_phy_init':
    phy-tegra-usb.c:(.text+0x1dd4): undefined reference to `clk_get_parent'

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
---
 arch/mips/ralink/clk.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/mips/ralink/clk.c b/arch/mips/ralink/clk.c
index 2f9d5acb38ea..8387177a47ef 100644
--- a/arch/mips/ralink/clk.c
+++ b/arch/mips/ralink/clk.c
@@ -70,6 +70,20 @@ long clk_round_rate(struct clk *clk, unsigned long rate)
 }
 EXPORT_SYMBOL_GPL(clk_round_rate);
 
+int clk_set_parent(struct clk *clk, struct clk *parent)
+{
+	WARN_ON(clk);
+	return -1;
+}
+EXPORT_SYMBOL(clk_set_parent);
+
+struct clk *clk_get_parent(struct clk *clk)
+{
+	WARN_ON(clk);
+	return NULL;
+}
+EXPORT_SYMBOL(clk_get_parent);
+
 void __init plat_time_init(void)
 {
 	struct clk *clk;
-- 
2.25.1


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

end of thread, other threads:[~2021-03-17 20:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-16 17:57 [PATCH] MIPS: ralink: define stubs for clk_set_parent to fix compile testing Krzysztof Kozlowski
2021-03-16 18:01 ` John Crispin
2021-03-16 21:58 ` Thomas Bogendoerfer
2021-03-17  0:14   ` Dmitry Osipenko
2021-03-17  8:16   ` Krzysztof Kozlowski
2021-03-17  0:10 ` Dmitry Osipenko
2021-03-17  8:12   ` Krzysztof Kozlowski
2021-03-17  9:52 ` Sergei Shtylyov
2021-03-17  9:56   ` Krzysztof Kozlowski
2021-03-17 10:06     ` Sergei Shtylyov
2021-03-17 19:37     ` Dmitry Osipenko
2021-03-17 19:59       ` Krzysztof Kozlowski

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.