Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1433376
| From | Stephen Boyd <sboyd@codeaurora.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2] clk: Provide notifier stubs when !COMMON_CLK |
| Date | 2016-06-29 02:20 +0200 |
| Message-ID | <rPbot-5tm-1@gated-at.bofh.it> (permalink) |
| References | <rOZnk-6lK-37@gated-at.bofh.it> <rP59o-1Ba-17@gated-at.bofh.it> <rP6yu-2zH-41@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 06/28, Krzysztof Kozlowski wrote: > On Tue, Jun 28, 2016 at 10:26:53AM -0700, Stephen Boyd wrote: > > On 06/28, Krzysztof Kozlowski wrote: > > > The clk notifier symbols are hidden by COMMON_CLK. However on some > > > platforms HAVE_CLK might be set while COMMON_CLK not which leads to > > > compile test build errors like: > > > > > > $ make.cross ARCH=sh > > > drivers/devfreq/tegra-devfreq.c: In function 'tegra_actmon_rate_notify_cb': > > > >> drivers/devfreq/tegra-devfreq.c:391:16: error: 'POST_RATE_CHANGE' undeclared (first use in this function) > > > if (action != POST_RATE_CHANGE) > > > ^ > > > drivers/devfreq/tegra-devfreq.c: In function 'tegra_devfreq_probe': > > > >> drivers/devfreq/tegra-devfreq.c:654:8: error: implicit declaration of function 'clk_notifier_register' [-Werror=implicit-function-declaration] > > > err = clk_notifier_register(tegra->emc_clock, &tegra->rate_change_nb); > > > ^ > > > > > > Export the macros and data type declarations outside of COMMON_CLK ifdef > > > and provide stubs to fix the compile testing. > > > > > > Reported-by: kbuild test robot <lkp@intel.com> > > > Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > > > > > > --- > > > > > > > Ok. Did you want some stable branch to pull this in and base your > > use case on? > > It is only one patch but indeed without the branch my patches would have > to wait for next release. If you would be so kind, could you prepare > the stable branch? I hope MyungJoo Ham will use it. > > Anyway I encountered more linkage errors for clk API (like clk_get_rate()). > They happen for various compile-tested drivers in case of MIPS (and > maybe others like SH). I will investigate it more but I think it is not > related strictly to this issue. Sure. That's probably because some clk APIs are optional and not implemented, leading to link errors. I've applied this patch to a branch called clk-notify and merged it into clk-next. -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2] clk: Provide notifier stubs when !COMMON_CLK Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-28 13:30 +0200
Re: [PATCH v2] clk: Provide notifier stubs when !COMMON_CLK Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> - 2016-06-28 14:00 +0200
Re: [PATCH v2] clk: Provide notifier stubs when !COMMON_CLK Stephen Boyd <sboyd@codeaurora.org> - 2016-06-28 19:40 +0200
Re: [PATCH v2] clk: Provide notifier stubs when !COMMON_CLK Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-06-28 21:10 +0200
Re: [PATCH v2] clk: Provide notifier stubs when !COMMON_CLK Stephen Boyd <sboyd@codeaurora.org> - 2016-06-29 02:20 +0200
csiph-web