[PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused

Krzysztof Kozlowski krzk at kernel.org
Fri Dec 4 10:33:23 EST 2020


On Fri, 4 Dec 2020 at 16:28, Sylwester Nawrocki <snawrocki at kernel.org> wrote:
>
> From: Arnd Bergmann <arnd at 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 at kernel.org>
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>
> ---
> v2: add proper changelog text
>
> Acked-by: Sylwester Nawrocki <s.nawrocki at samsung.com>

Indeed this should go via samsung soc tree...

Best regards,
Krzysztof



More information about the linux-arm-kernel mailing list