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: 9878799 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 C0A29603B4 for ; Thu, 3 Aug 2017 11:52:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6D98288B8 for ; Thu, 3 Aug 2017 11:52:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA1BF288B5; Thu, 3 Aug 2017 11:52:11 +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=-3.7 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4679D288AC for ; Thu, 3 Aug 2017 11:52:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 172436E16F; Thu, 3 Aug 2017 11:52:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id ABA346E16F; Thu, 3 Aug 2017 11:52:08 +0000 (UTC) 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 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== Cc: Arnd Bergmann , Neil Armstrong , Daniel Vetter , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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);