clk: samsung: mark PM functions as __maybe_unused
Subsystems (3)
PATCH 1/1 clk: samsung: mark PM functions as __maybe_unused
From: Arnd Bergmann <[email protected]>
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)
| ^~~~~~~~~~~~~~~~~~~~~--- drivers/clk/samsung/clk-exynos-clkout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/clk/samsung/clk-exynos-clkout.c +2 -2
@@ -207,7 +207,7 @@ static int exynos_clkout_remove(struct platform_device *pdev)return 0 ; } -static int exynos_clkout_suspend (struct device *dev) +static int __maybe_unused exynos_clkout_suspend (struct device *dev) {struct exynos_clkout *clkout =dev_get_drvdata (dev);
@@ -216,7 +216,7 @@ static int exynos_clkout_suspend(struct device *dev)return 0 ; } -static int exynos_clkout_resume (struct device *dev) +static int __maybe_unused exynos_clkout_resume (struct device *dev) {struct exynos_clkout *clkout =dev_get_drvdata (dev);
Signature · 1 line
2.27.0
Quoted 2 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
I understand this happens with !PM builds. It would be good to mention this in commit msg. With commit msg improved:
Best regards,
Krzysztof
Quoted 37 lines
drivers/clk/samsung/clk-exynos-clkout.c:219:12: error: 'exynos_clkout_resume' defined but not used [-Werror=unused-function]
219 | static intexynos_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) | ^~~~~~~~~~~~~~~~~~~~~Signed-off-by Arnd Bergmann <[email protected]>--- drivers/clk/samsung/clk-exynos-clkout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/clk/samsung/clk-exynos-clkout.c +2
-2@@ -207,7 +207,7 @@ static int exynos_clkout_remove(struct platform_device *pdev)return 0 ; } -static int exynos_clkout_suspend (struct device *dev) +static int __maybe_unused exynos_clkout_suspend (struct device *dev) {struct exynos_clkout *clkout =dev_get_drvdata (dev);@@ -216,7 +216,7 @@ static int exynos_clkout_suspend(struct device *dev)return 0 ; } -static int exynos_clkout_resume (struct device *dev) +static int __maybe_unused exynos_clkout_resume (struct device *dev) {struct exynos_clkout *clkout =dev_get_drvdata (dev);Signature · 1 line
2.27.0
Quoted 9 lines · Krzysztof Kozlowski
Quoted 2 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
I understand this happens with !PM builds. It would be good to mention this in commit msg. With commit msg improved:
Reviewed-by Krzysztof Kozlowski <[email protected]>
Thanks for taking a look.
I had meant to add a changelog text and failed to notice that this only had the warning message and neither a Fixes tag nor a description when I sent it out.
v2 coming.
Arnd