From: Arnd Bergmann Date: Mon, 9 Apr 2018 10:54:34 +0000 (+0200) Subject: clk: cs2000: mark resume function as __maybe_unused X-Git-Tag: v4.19~1020^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a21b85944c9653f2a3388d0da962c7c70690c30f;p=platform%2Fkernel%2Flinux-rpi3.git clk: cs2000: mark resume function as __maybe_unused When power management is disabled, we get a harmless warning: drivers/clk/clk-cs2000-cp.c:544:12: error: 'cs2000_resume' defined but not used [-Werror=unused-function] Marking the function as __maybe_unused lets the compiler silently drop it instead. Fixes: eade4ccdb087 ("clk: cs2000: set pm_ops in hibernate-compatible way") Signed-off-by: Arnd Bergmann Signed-off-by: Stephen Boyd --- diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c index c580197..a2f8c42 100644 --- a/drivers/clk/clk-cs2000-cp.c +++ b/drivers/clk/clk-cs2000-cp.c @@ -541,7 +541,7 @@ probe_err: return ret; } -static int cs2000_resume(struct device *dev) +static int __maybe_unused cs2000_resume(struct device *dev) { struct cs2000_priv *priv = dev_get_drvdata(dev);