linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] MIPS: ralink: define stubs for clk_set_parent to fix compile testing
@ 2021-03-17 11:26 Krzysztof Kozlowski
  2021-03-17 22:10 ` Dmitry Osipenko
  2021-03-25 10:00 ` Thomas Bogendoerfer
  0 siblings, 2 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2021-03-17 11:26 UTC (permalink / raw)
  To: John Crispin, Thomas Bogendoerfer, linux-mips, linux-kernel
  Cc: sergei.shtylyov, thierry.reding, linux-tegra, balbi, 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>
Acked-by: John Crispin <john@phrozen.org>

---

Changes since v1:
1. Use EXPORT_SYMBOL_GPL like two other stubs in the file.
2. Add Ack
---
 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..f0bcb1051c30 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_GPL(clk_set_parent);
+
+struct clk *clk_get_parent(struct clk *clk)
+{
+	WARN_ON(clk);
+	return NULL;
+}
+EXPORT_SYMBOL_GPL(clk_get_parent);
+
 void __init plat_time_init(void)
 {
 	struct clk *clk;
-- 
2.25.1


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

* Re: [PATCH v2] MIPS: ralink: define stubs for clk_set_parent to fix compile testing
  2021-03-17 11:26 [PATCH v2] MIPS: ralink: define stubs for clk_set_parent to fix compile testing Krzysztof Kozlowski
@ 2021-03-17 22:10 ` Dmitry Osipenko
  2021-03-25 10:00 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Dmitry Osipenko @ 2021-03-17 22:10 UTC (permalink / raw)
  To: Krzysztof Kozlowski, John Crispin, Thomas Bogendoerfer,
	linux-mips, linux-kernel
  Cc: sergei.shtylyov, thierry.reding, linux-tegra, balbi, kernel test robot

17.03.2021 14:26, Krzysztof Kozlowski пишет:
> 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>
> Acked-by: John Crispin <john@phrozen.org>

Reviewed-by: Dmitry Osipenko <digetx@gmail.com>

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

* Re: [PATCH v2] MIPS: ralink: define stubs for clk_set_parent to fix compile testing
  2021-03-17 11:26 [PATCH v2] MIPS: ralink: define stubs for clk_set_parent to fix compile testing Krzysztof Kozlowski
  2021-03-17 22:10 ` Dmitry Osipenko
@ 2021-03-25 10:00 ` Thomas Bogendoerfer
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Bogendoerfer @ 2021-03-25 10:00 UTC (permalink / raw)
  To: Krzysztof Kozlowski
  Cc: John Crispin, linux-mips, linux-kernel, sergei.shtylyov,
	thierry.reding, linux-tegra, balbi, digetx, kernel test robot

On Wed, Mar 17, 2021 at 12:26:44PM +0100, Krzysztof Kozlowski wrote:
> 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>
> Acked-by: John Crispin <john@phrozen.org>
> 
> ---
> 
> Changes since v1:
> 1. Use EXPORT_SYMBOL_GPL like two other stubs in the file.
> 2. Add Ack
> ---
>  arch/mips/ralink/clk.c | 14 ++++++++++++++
>  1 file changed, 14 insertions(+)

applied to mips-next.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]

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

end of thread, other threads:[~2021-03-25 10:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-17 11:26 [PATCH v2] MIPS: ralink: define stubs for clk_set_parent to fix compile testing Krzysztof Kozlowski
2021-03-17 22:10 ` Dmitry Osipenko
2021-03-25 10:00 ` Thomas Bogendoerfer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).