Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp219715pxu; Fri, 4 Dec 2020 01:19:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJz22LKpGVsoPilc8EjD6Suy4tI56cD0fZjn3/+pAJQXcVtX3SOFOZLJ43lRw/3izAimN/kp X-Received: by 2002:a17:907:9619:: with SMTP id gb25mr5952753ejc.444.1607073587721; Fri, 04 Dec 2020 01:19:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607073587; cv=none; d=google.com; s=arc-20160816; b=RoSB7ZyOySQgTCwftGmBEQ5fSqWlFQXbPXlxL1/p6XoLd6qJfsnzQdWwFDXGshBsn9 G9hl5HXNXLuen3o25MC7DiLPmS70v/GA6/VuHwa/gnq1LoMJlcISq3q5qEHO6rYXTV4I mEfOJaoX7/j2SQ0elzatigWUvZ8w2lVz3QC/GfzWXzx3tR0B9BS3hMT8Ya7XhfzC3f4R 8lbnvzmJ55WufaFmq6ELBqC6dSt5K+1+rxK7CJYZ9hjNjoQQ2Wn0zjspu1sEafO6NN7m hJvclz9SygoCEGLFjaBqgVuv+2d8Q7Q43ygpjd/+Gk2uveVLFisgZ6ZL39liG94abAvC TtfA== 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=PlynZo9u3awNTyEjVP/Wqt6R0WGmWsaAp1LmNunbTiDzSNL/IeDhnwZD4q5vcTK0vB 5jFejV6laxpFEc6A17/5mslBYmTJpQ4pidPI3pfa1nCAgq8DFTLd271j6zFH/N7mHhxV ErADefc51mgRkSDmizbYvD9aN582czZwT+JkC/WVletHFOhB8aE9nBg0Vj7RDWHj1MJR vPj7/UT5lTtiXjX5mw2YXAMVJQlpWqY6g54pHnpTYzdhbtvqjlXzOWJWuYvfjVdUkzW5 brLhE+6Sh0bweNw8yOyjaYWTEIfnnQgGi4AW6tma2Qhsv42fVD9WQB3H3Le0vLv77YOQ ZDhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 by23si462620ejb.165.2020.12.04.01.19.24; Fri, 04 Dec 2020 01:19:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729527AbgLDJRC (ORCPT + 99 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 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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); -- 2.27.0