From patchwork Tue Oct 10 09:15:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 115369 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp3525079qgn; Tue, 10 Oct 2017 02:16:04 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBZI0NfimenVAWP5QLEBqz3w77Fsos63AcpUuEr5b40dkqXd8KmHQ+Eo1Py7Jm5bGt7iMRu X-Received: by 10.101.85.204 with SMTP id k12mr11448804pgs.439.1507626964519; Tue, 10 Oct 2017 02:16:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507626964; cv=none; d=google.com; s=arc-20160816; b=vWHTm6v8XiSeX7oH5FKWZZW+fbBV8R/bKoF27qbfUNWdkWmJQFnPdKHqaw8ck+jd50 30WtsmvSQf213oQTNSGerEwg9BqdNVKdgioJZsz7l7AwC0S32Gv13TMOBzU+ycLCuWna UWhLDyhBC/goFOKG7Bacl23M+Y2I+fToGCOC2TSuu9hqo9JVWhdYcwH9RGvrgUXKkONR 5wkvh07xUy7shUO3WY6Xu2n8WKeE588aFkr6f59cdVgi/hfZg3nKbPeJpcdLd7YC9B9J Z3e9piEbDPl1n669EFXNGyn3iOwrtwg8VFq621zcLS/nH9ASY1XPo/A2/bG9QV5SLy7i haJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ygoYDPfKky6hmK1NxhrenMgL3h2fdFgKDWhCpx2XmAQ=; b=ph8FlhaOdeaSDm29zSSpHuFFHXFts7hyE3sdadkAV4aV0c7Bt0xOb7xrEwoCf7bCqr WB2QJLphNej0GZxZSghoYppthjZk82DBuAgePnqauCGP+CmxvWHSHP92jNyq4LthzwKw XSYokOL01catTYJiyoEvHf7Qg8p35HREMaWelosvJuE9IvU+8IQxSFK8CQ3VFdBCdJNv aEShhD9/prH280KwMkKoRQJQUOKDJimwBfzQ8qw5ftx3x+ZhzobjtGvh3N/avhO7wkwZ ZWtyw24inUt+ky709piLeUV/7svsjeDZTozGtX2SRi4yc5aPivmPiDv+1tPRrLGLLh4d ctWw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si6625018plm.349.2017.10.10.02.16.04; Tue, 10 Oct 2017 02:16:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755221AbdJJJQD (ORCPT + 4 others); Tue, 10 Oct 2017 05:16:03 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:53083 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752207AbdJJJQC (ORCPT ); Tue, 10 Oct 2017 05:16:02 -0400 Received: from wuerfel.lan ([95.208.190.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0Li6Ex-1dXmjn02dv-00nP4a; Tue, 10 Oct 2017 11:15:24 +0200 From: Arnd Bergmann To: Sylwester Nawrocki , Tomasz Figa , Chanwoo Choi , Michael Turquette , Stephen Boyd , Kukjin Kim , Krzysztof Kozlowski Cc: Arnd Bergmann , Marek Szyprowski , Ulf Hansson , linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] clk: samsung: exynos5433: mark PM functions as __maybe_unused Date: Tue, 10 Oct 2017 11:15:12 +0200 Message-Id: <20171010091522.2286344-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:/ma7L8dwdkTse1US845IxhhqUjwCLQ0HzY+LdWip0QOmuCuGrKG Lj12zjy2BD2qEbpw6LXr1opeIODtkeHS2OyguKMAarC4pr+4xDeEaGQvFQ03xjnB43iYXSy punkmckJAz7jR46aegH2FeMynKooPh0BW8DaCb94OXPoK2wT0Xkzz7/mpe5LPdZjexWhuU8 x+dMesVknuI5ueq0qU6qw== X-UI-Out-Filterresults: notjunk:1; V01:K0:Sbg62II/4x4=:lz1Y9m8yzUdjZfH/3S0j7o bvJaUOYB80Pqv+B3GjEJLxTwu3hgRCXybFpP34gdZbGteCCMD7T4kWaOs9jk9C/g/vjt9fJrF h35aJmfOfZXXsfKaR0Xqets43DO7QSET2Go2iBZoWw1a3YKrhDzXkPBtnY3jezRmbdethJTC5 pfewT3OuoIIr3oTCOVPJ1H81JUETmm5mCsesA5Iydpfwz12OSihYHrj1F/C0LRFY6bOO/Pc4/ GauAD0yLonw4ChBfaeU+QxC6Q3UGuI6qs1U1DL7Fnkpbn5/EWTzjHBci+QFGZIsc81n0skMKO W79tig10dYH72WzIHNCF//EQUep+3S7y1J3ft9PRu/iScE8prily/2OUPU2bzG4zxgflnCDC0 Np7tXmg71TX8zYG3dCp3v2thA8eSWv22Nz85HlFj/d/r0tkzauCWcoxuKZQ7LohRFHh/0pY2E YoMzubfBf7qYgVo2oq0NwL5rcG+O8Av4TaDYf8mEJAMUrD4F1A/Ai/1LeB8MHRjJayKdaxsco puEiJ/NuyUjh5kx++wiP405nIW/Gh00DX5ONxzBvgeM83MnpbWe69tU3gxSeyimZPSxqmCe42 G3qMESvxldVSk2UUE4I5XqTFaUr5nCIpoux4+0GzbV3/SxJlD6yimGWEnHyhM/28F/BIiLQWv djdQEYjb8Rr2JK7NtAWesWC0fQFBPrThgrDTYhWr76wb1ENtsgZBlwxkljK+uX4xZRND8Ztxa 11gMn3JhuxKZr0qZG0iLPa6yd7FSdgWwgC7dWg== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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 --- drivers/clk/samsung/clk-exynos5433.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Acked-by: Marek Szyprowski Acked-by: Ulf Hansson diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index cd9337613dd8..db270908037a 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -5450,7 +5450,7 @@ struct exynos5433_cmu_data { struct samsung_clk_provider ctx; }; -static int exynos5433_cmu_suspend(struct device *dev) +static int __maybe_unused exynos5433_cmu_suspend(struct device *dev) { struct exynos5433_cmu_data *data = dev_get_drvdata(dev); int i; @@ -5473,7 +5473,7 @@ static int exynos5433_cmu_suspend(struct device *dev) return 0; } -static int exynos5433_cmu_resume(struct device *dev) +static int __maybe_unused exynos5433_cmu_resume(struct device *dev) { struct exynos5433_cmu_data *data = dev_get_drvdata(dev); int i;