linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* CONFIG_COMMON_CLK vs CONFIG_HAVE_CLK
@ 2019-12-12  2:09 Kuninori Morimoto
  2019-12-12 10:57 ` Enrico Weigelt, metux IT consult
  0 siblings, 1 reply; 4+ messages in thread
From: Kuninori Morimoto @ 2019-12-12  2:09 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd; +Cc: linux-clk, linux-kernel


Hi

I noticed that there are some CONFIG_HAVE_CLK vs CONFIG_COMMON_CLK mismatch.
Because of it, I got compile error at clk_set_min_rate() on SH.
SH will have HAVE_CLK, but doesn't have COMMON_CLK.

	> ARCH=sh make allyesconfig
	> make
	...
	drivers/devfreq/tegra30-devfreq.o: In function `tegra_devfreq_target':
	tegra30-devfreq.c:(.text+0x368): undefined reference to `clk_set_min_rate'

clk_set_min_rate() is under HAVE_CLK at clk.h

	--- clk.h ---
=>	#ifdef CONFIG_HAVE_CLK
	...
	int clk_set_min_rate(struct clk *clk, unsigned long rate);
	...
	#else /* !CONFIG_HAVE_CLK */
	static inline int clk_set_min_rate(struct clk *clk, unsigned long rate)
	...
	-------------

It is implemented at clk.c.
But it will be compiled via COMMON_CLK

	--- Makefile ---
	...
=>	obj-$(CONFIG_COMMON_CLK)	+= clk.o
	...
	----------------

Thank you for your help !!
Best regards
---
Kuninori Morimoto

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

end of thread, other threads:[~2019-12-13  4:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-12  2:09 CONFIG_COMMON_CLK vs CONFIG_HAVE_CLK Kuninori Morimoto
2019-12-12 10:57 ` Enrico Weigelt, metux IT consult
2019-12-12 21:51   ` Stephen Boyd
2019-12-13  4:41     ` Kuninori Morimoto

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