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: 9995385 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C671E60216 for ; Tue, 10 Oct 2017 09:16:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C28AA28421 for ; Tue, 10 Oct 2017 09:16:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B71692842B; Tue, 10 Oct 2017 09:16:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 590F128421 for ; Tue, 10 Oct 2017 09:16:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755221AbdJJJQD (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Marek Szyprowski Acked-by: Chanwoo Choi Acked-by: Ulf Hansson --- drivers/clk/samsung/clk-exynos5433.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;