linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] clk: Add missing stubs for a few functions
@ 2019-04-25 13:28 Dmitry Osipenko
  2019-04-25 15:20 ` Stephen Boyd
  0 siblings, 1 reply; 2+ messages in thread
From: Dmitry Osipenko @ 2019-04-25 13:28 UTC (permalink / raw)
  To: Stephen Boyd, Chanwoo Choi; +Cc: linux-clk, linux-kernel

Compilation fails if any of undeclared clk_set_*() functions are in use
and CONFIG_HAVE_CLK=n.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
---
 include/linux/clk.h | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/include/linux/clk.h b/include/linux/clk.h
index d8bc1a856b39..f689fc58d7be 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -811,6 +811,22 @@ static inline bool clk_has_parent(struct clk *clk, struct clk *parent)
 	return true;
 }
 
+static inline int clk_set_rate_range(struct clk *clk, unsigned long min,
+				     unsigned long max)
+{
+	return 0;
+}
+
+static inline int clk_set_min_rate(struct clk *clk, unsigned long rate)
+{
+	return 0;
+}
+
+static inline int clk_set_max_rate(struct clk *clk, unsigned long rate)
+{
+	return 0;
+}
+
 static inline int clk_set_parent(struct clk *clk, struct clk *parent)
 {
 	return 0;
-- 
2.21.0


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

* Re: [PATCH v1] clk: Add missing stubs for a few functions
  2019-04-25 13:28 [PATCH v1] clk: Add missing stubs for a few functions Dmitry Osipenko
@ 2019-04-25 15:20 ` Stephen Boyd
  0 siblings, 0 replies; 2+ messages in thread
From: Stephen Boyd @ 2019-04-25 15:20 UTC (permalink / raw)
  To: Chanwoo Choi, Dmitry Osipenko; +Cc: linux-clk, linux-kernel

Quoting Dmitry Osipenko (2019-04-25 06:28:37)
> Compilation fails if any of undeclared clk_set_*() functions are in use
> and CONFIG_HAVE_CLK=n.
> 
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
> ---

Applied to clk-fixes


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

end of thread, other threads:[~2019-04-25 15:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-25 13:28 [PATCH v1] clk: Add missing stubs for a few functions Dmitry Osipenko
2019-04-25 15:20 ` Stephen Boyd

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).