From patchwork Thu Aug 3 11:50:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9878801 X-Patchwork-Delegate: agross@codeaurora.org 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 52257603B4 for ; Thu, 3 Aug 2017 11:52:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 49EED288AC for ; Thu, 3 Aug 2017 11:52:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E1F8288BB; Thu, 3 Aug 2017 11:52:13 +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 E2DF3288AC for ; Thu, 3 Aug 2017 11:52:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752084AbdHCLwL (ORCPT ); Thu, 3 Aug 2017 07:52:11 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:62044 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751140AbdHCLwK (ORCPT ); Thu, 3 Aug 2017 07:52:10 -0400 Received: from wuerfel.lan ([78.43.238.10]) by mrelayeu.kundenserver.de (mreue104 [212.227.15.145]) with ESMTPA (Nemesis) id 0MRDId-1e6CJu3LDD-00UasG; Thu, 03 Aug 2017 13:51:57 +0200 From: Arnd Bergmann To: Rob Clark , Archit Taneja Cc: Arnd Bergmann , David Airlie , Daniel Vetter , Neil Armstrong , =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] drm/msm/mdp5: mark runtime_pm functions as __maybe_unused Date: Thu, 3 Aug 2017 13:50:47 +0200 Message-Id: <20170803115130.3448850-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170803115130.3448850-1-arnd@arndb.de> References: <20170803115130.3448850-1-arnd@arndb.de> X-Provags-ID: V03:K0:CWPDIkHyPcUcfpEOdJWJA0Gyh1+8YoBdrVA1opq4m3F19vfxCeO jzJHfZngObPUHbU2hdS79JlTkmT4jVqfeceJ4AMbVe0r26sgnL8R50g8jiLMZvlLkUfy8+V UAIQYwUs2dvdCyBPynRBjVA/xfNnEYkE2BMNKtBzuah8IJ4jsRzDMbUqCzcUZm0937laZ+v VZI4DJBBkqaRtovHlLvHg== X-UI-Out-Filterresults: notjunk:1; V01:K0:uCCBuVXBbUU=:e1xz6UO74cNo7v7f3BGErG zYBDXt1VmcRoyinp7smYUS8kA4SjuxsLcFf8QLJrW3HzfT2L1GggICZ9twq0KwfuKRSjdNo91 YxJXaiggy89RXXchAFDzaNxv3KM+zaS1JTNKxrHS7HW8QZsCYfc96kmCXkDJhGogVVPwyXmp8 TQqeQ9MmLzOXD+XfRizNeGB3firXD3x64dRuKiiaQBNz4JLA135BHB8iELyEQJt1FXYKPXhlE +iam+wMPoFUR4ldSq6XA8xNhQ3WP/y7TPWeEL1B0go/SIA4tN+e+760o55gHRpNQPMxrd9Pd8 /sV3Nq42oHbphCkZ4PQw9n10DfgNMTyA952g9Id0pfDAS9BMdLUMXeOKBZeaoaY3a/8tDYaJs OXJt+7cEclZccEJGO/BK4l1j87Cu0msHjSGWSUEWoT8Tw10rgpHQLQ7oKnyezI+TrdlrYs6YS fTK2F2kr1M6I+sqSsjC6fFAqh/EF11y2qGchLrE32lsfgfLgH4rtT2P3y0iSuAbB0VibE8SRp MGQ6MIHjtkES9WDUdxV3TvY//PIPe6Uuc/p8yBWA7afdHWmBJxLVoXENYWzcBVlYcBOhSIbwx Z/4/TD5u+wS4/apaCkihwyuqMyLVk2epoe0m6p6D4W4+Mvx7Qorg+IABFRq1Bt4H2nNRxlf2l Qm4Y3gDkoc6oT5iTS/j01QOtSXrR62FuszdJJ3YrObjWYG4wBZjxxyTR7DaRCdZvImZ+/lrS/ jaoEol+uqm6UI4i6tCCs4PH34G+Kwo3DMONVmA== Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When CONFIG_PM is disabled, we get harmless warnings about unused functions: drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c:1025:12: error: 'mdp5_runtime_resume' defined but not used [-Werror=unused-function] static int mdp5_runtime_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c:1015:12: error: 'mdp5_runtime_suspend' defined but not used [-Werror=unused-function] static int mdp5_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~ This marks both functions as __maybe_unused so the compiler can drop them silently. Fixes: d68fe15b1878 ("drm/msm/mdp5: Use runtime PM get/put API instead of toggling clocks") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c index 9f9d95f7c80f..f7c0698fec40 100644 --- a/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c +++ b/drivers/gpu/drm/msm/mdp/mdp5/mdp5_kms.c @@ -1012,7 +1012,7 @@ static int mdp5_dev_remove(struct platform_device *pdev) return 0; } -static int mdp5_runtime_suspend(struct device *dev) +static __maybe_unused int mdp5_runtime_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct mdp5_kms *mdp5_kms = platform_get_drvdata(pdev); @@ -1022,7 +1022,7 @@ static int mdp5_runtime_suspend(struct device *dev) return mdp5_disable(mdp5_kms); } -static int mdp5_runtime_resume(struct device *dev) +static __maybe_unused int mdp5_runtime_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct mdp5_kms *mdp5_kms = platform_get_drvdata(pdev);