From patchwork Fri May 25 15:50:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10427889 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 A22A86025B for ; Fri, 25 May 2018 15:58:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8CC01286C1 for ; Fri, 25 May 2018 15:58:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 81913289F2; Fri, 25 May 2018 15:58:08 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED 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 3D2CA286C1 for ; Fri, 25 May 2018 15:58:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4534D6E977; Fri, 25 May 2018 15:58:07 +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 E4B096E973 for ; Fri, 25 May 2018 15:58:03 +0000 (UTC) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0Lnjgd-1fzhNH3EMh-00hvCj; Fri, 25 May 2018 17:52:40 +0200 From: Arnd Bergmann To: Archit Taneja , Andrzej Hajda , David Airlie Subject: [PATCH 8/8] drm/bridge: cdns: mark PM functions as __maybe_unused Date: Fri, 25 May 2018 17:50:15 +0200 Message-Id: <20180525155030.3667352-8-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180525155030.3667352-1-arnd@arndb.de> References: <20180525155030.3667352-1-arnd@arndb.de> X-Provags-ID: V03:K1:lga64+uz/9QQLDSfmMLk93/z4dpHilERqvwweRQ3nvCYM/n5dOf KhLeBcrOw+yHwoC6zoQDwlcSz+SY6MqXXoswc6OfdOV3u+fnF1kbIW449aakeUmVqwU5xJC 5HMSBlq8bH90k54rDhcRvQ1BlufcFYoLVvBF/1YTSIh3XQQxh7Gp/rozJD/If8OSyBfOxOn 0aJZORYE0iuXx5YoEpsmA== X-UI-Out-Filterresults: notjunk:1; V01:K0:XEKky4EE1zA=:Hs08pwRc5YNjkJ4wX5o3n3 koD1Zji/MF3N9e4puGI8SLXThrI9WtRz1WhJqTvsDM028GpK8a1Mr2soZDxjDC1gZ6GvHoj+k uvy7lAi1wGL7agNj4TH9iKo/Dh4kcRhS0/Mg1Igrz6CgRjvR2DzdA/7khNAqIG1CLoamkoX81 Ivsp5N31F2wW1PBfVfnOawMw9JIS4if8bUKsFei+TgqEGebTvcuKqtclrrttf5n+Zynq3cZnX XPjcK4IrNzKp2uQ1GXLXvm7F/vuI8v4VLeq/rJQ43dudoSusDXW71Idd3Y/7LTz0gQSLNmgK7 VKdINbCAMC1mCs9AyNP+4EUfvt0IRAYt35L2q/IDrkNMx2gK3sbxLspwv7SANGLczeI593+IF 8XdTVMONgV5Gbx4GD3+D0HuEPf1Ayc7hcblPaq9uO3oegTujzCpV006i/POU/9vmpiEwkZmGL OzgvZ1WSFygALvRVT5knjJJP9g+/LH8JYMjyFW49p35WUOMjjaFzlu0tEPzlvwi9tHCjpZ00v 5MJnBPVY8JStSgk5QXC8+ZEepXMkFLi8YhmjrP4cS9McOllN8R6/swXSm1V2FHO0cXFZcx73d ECUrHtQjNNGQapaH+VQ0W95NtDMDIfPkQo8F6teYEMJtAY1eGPl4pcUve8aauinOxjgZNDn3+ ZrzxrqOsjJJAC9hAq1Q4pOb3zpAAgHz4SMyi++n/B0/2W7+6VzKYySqNHOB+3BtvSx64= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Boris Brezillon , Laurent Pinchart MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP These two functions are unused in some configurations, and using __maybe_unused is the easiest way to shut up the harmless warnings: drivers/gpu/drm/bridge/cdns-dsi.c:1353:12: error: 'cdns_dsi_suspend' defined but not used [-Werror=unused-function] static int cdns_dsi_suspend(struct device *dev) ^~~~~~~~~~~~~~~~ drivers/gpu/drm/bridge/cdns-dsi.c:1340:12: error: 'cdns_dsi_resume' defined but not used [-Werror=unused-function] static int cdns_dsi_resume(struct device *dev) Fixes: e19233955d9e ("drm/bridge: Add Cadence DSI driver") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/bridge/cdns-dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/cdns-dsi.c b/drivers/gpu/drm/bridge/cdns-dsi.c index c255fc3e1be5..f2d43f24acfb 100644 --- a/drivers/gpu/drm/bridge/cdns-dsi.c +++ b/drivers/gpu/drm/bridge/cdns-dsi.c @@ -1337,7 +1337,7 @@ static const struct mipi_dsi_host_ops cdns_dsi_ops = { .transfer = cdns_dsi_transfer, }; -static int cdns_dsi_resume(struct device *dev) +static int __maybe_unused cdns_dsi_resume(struct device *dev) { struct cdns_dsi *dsi = dev_get_drvdata(dev); @@ -1350,7 +1350,7 @@ static int cdns_dsi_resume(struct device *dev) return 0; } -static int cdns_dsi_suspend(struct device *dev) +static int __maybe_unused cdns_dsi_suspend(struct device *dev) { struct cdns_dsi *dsi = dev_get_drvdata(dev);