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

Ulf Hansson ulf.hansson at linaro.org
Tue Oct 10 03:41:20 PDT 2017


On 10 October 2017 at 11:15, Arnd Bergmann <arnd at arndb.de> wrote:
> The suspend/resume functions are referenced conditionally, causing
> a harmless warning when CONFIG_PM is disabled:
>
> drivers/clk/samsung/clk-exynos5433.c:5476:12: error: 'exynos5433_cmu_resume' defined but not used [-Werror=unused-function]
> drivers/clk/samsung/clk-exynos5433.c:5453:12: error: 'exynos5433_cmu_suspend' defined but not used [-Werror=unused-function]
>
> This marks both as __maybe_unused to shut up the warning.
>
> Fixes: 523d3de41f02 ("clk: samsung: exynos5433: Add support for runtime PM")
> Signed-off-by: Arnd Bergmann <arnd at arndb.de>

FWIW:

Acked-by: Ulf Hansson <ulf.hansson at linaro.org>

[...]



More information about the linux-arm-kernel mailing list