From patchwork Fri Dec 4 09:16:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 337738 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp85133ilb; Fri, 4 Dec 2020 01:17:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJrpKefiyQig5feRQgmqvzJd0jWse/VhgrfJ7N1CVXdhuORicVit0ow4I/slogZOe5YIc5 X-Received: by 2002:a17:906:234d:: with SMTP id m13mr6271494eja.270.1607073451128; Fri, 04 Dec 2020 01:17:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607073451; cv=none; d=google.com; s=arc-20160816; b=Fn+IBhmUA1i0cxBUyVspn2iz+uPLh34V4QkhDh5BtMh/28ORdl0UGZ++Ew/xLcPP47 DD3nz/XPP87Vq83eZW6Td0+OSsouLYxSlbDW1pPSkSZASdiCTAxEQLQhG1xlIsqcHgiO KAvCuIKvw53olDYz7Sy4Hv/u5+Z4NkdzaqY/L1NBwNsctJMyGQdk0LzeJkoh9F8Ieewb JEHpBmYo+ZP83yGJKrmOjsGoSVURhlYdcvh4jXKxHX3qyCcHzFOIhIRlX3CHjMG8Swql wULQmpz5kuBRg3Zt/+LJ5BZ6xon7ofmaUttnM8Rg+kGeaB7KNCVfi46u7VApxuyjDQCc rMKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=8UbeD5DHlEMONG8qUSDiuqEahyksWuMtZFqJZr+mxmU=; b=XMhJDbPd41HnG7kSeh/Yx+UPuOsvnHClgYFkGkit3Ok/HefUeoJvwSLqgUS5fOF1uw heqCY3kC0XWgH2zuUqKftZE+0fILEDLDO81iQIGlB/xPwpIwuhWFxVNUhkDNWym9iyha tiMZzLAcvo5f42vgCbmBxJPxpf3py4IdhgqolhlUpq/RUPrqAuvyAaSF4eYOzVT3prld gzvTbtuT3Ch5Y9cBA7Iy54CijpjDKCClkcD6+A2dGIrxpyindpnNAbxFntOygVFX6uMW i5PAiDk64VjqLhT0aroNNHfs22BaaE4dhRnFg1d7+NYYPTPgDKsc6mtItso4FnPx+XOz h4Ww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si2645591edn.361.2020.12.04.01.17.30; Fri, 04 Dec 2020 01:17:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-samsung-soc-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729455AbgLDJRC (ORCPT + 4 others); Fri, 4 Dec 2020 04:17:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:44774 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725866AbgLDJRB (ORCPT ); Fri, 4 Dec 2020 04:17:01 -0500 From: Arnd Bergmann Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd , Krzysztof Kozlowski Cc: Arnd Bergmann , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] [v2] clk: samsung: mark PM functions as __maybe_unused Date: Fri, 4 Dec 2020 10:16:11 +0100 Message-Id: <20201204091616.4128366-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org From: Arnd Bergmann 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 Signed-off-by: Arnd Bergmann --- v2: add proper changelog text --- drivers/clk/samsung/clk-exynos-clkout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.27.0 Acked-by: Chanwoo Choi Acked-by: Sylwester Nawrocki diff --git a/drivers/clk/samsung/clk-exynos-clkout.c b/drivers/clk/samsung/clk-exynos-clkout.c index 9ec2f40cc400..e6d6cbf8c4e6 100644 --- a/drivers/clk/samsung/clk-exynos-clkout.c +++ b/drivers/clk/samsung/clk-exynos-clkout.c @@ -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);