public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused
@ 2020-12-04 15:27 Sylwester Nawrocki
  2020-12-04 15:33 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 6+ messages in thread
From: Sylwester Nawrocki @ 2020-12-04 15:27 UTC (permalink / raw)
  To: Michael Turquette, Stephen Boyd
  Cc: Tomasz Figa, Chanwoo Choi, Krzysztof Kozlowski, Arnd Bergmann,
	linux-samsung-soc, linux-clk, linux-arm-kernel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

The use of SIMPLE_DEV_PM_OPS() means that the suspend/resume
functions are now unused when CONFIG_PM is disabled:

drivers/clk/samsung/clk-exynos-clkout.c:219:12: error: 
'exynos_clkout_resume' defined but not used [-Werror=unused-function]
   219 | static int exynos_clkout_resume(struct device *dev)
       |            ^~~~~~~~~~~~~~~~~~~~
drivers/clk/samsung/clk-exynos-clkout.c:210:12: error: 
'exynos_clkout_suspend' defined but not used [-Werror=unused-function]
   210 | static int exynos_clkout_suspend(struct device *dev)
       |            ^~~~~~~~~~~~~~~~~~~~~

Mark them as __maybe_unused to shut up the otherwise harmless warning.

Fixes: 9484f2cb8332 ("clk: samsung: exynos-clkout: convert to module 
driver")
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
v2: add proper changelog text

Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <CGME20201204091801epcas1p2a67474fad16d0c71f6b9a36cc72241ab@epcas1p2.samsung.com>]

end of thread, other threads:[~2020-12-05 15:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-12-04 15:27 [PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused Sylwester Nawrocki
2020-12-04 15:33 ` Krzysztof Kozlowski
     [not found] <CGME20201204091801epcas1p2a67474fad16d0c71f6b9a36cc72241ab@epcas1p2.samsung.com>
2020-12-04  9:16 ` Arnd Bergmann
2020-12-04  9:45   ` Chanwoo Choi
2020-12-04 15:36   ` Sylwester Nawrocki
2020-12-05 14:14   ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox