From patchwork Fri Dec 15 12:51:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10114969 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 1259860231 for ; Fri, 15 Dec 2017 12:52:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 01C8F29F20 for ; Fri, 15 Dec 2017 12:52:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EAC9F29F40; Fri, 15 Dec 2017 12:52:14 +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=-4.2 required=2.0 tests=BAYES_00, 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 87F3429F20 for ; Fri, 15 Dec 2017 12:52:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 26E846E0BE; Fri, 15 Dec 2017 12:52:14 +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.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 13DD36E0BE for ; Fri, 15 Dec 2017 12:52:11 +0000 (UTC) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0LbPII-1erml541aE-00kvm9; Fri, 15 Dec 2017 13:52:06 +0100 From: Arnd Bergmann To: Thierry Reding , David Airlie , Jonathan Hunter Subject: [PATCH] drm/tegra: mark t186 display hub PM functions __maybe_unused Date: Fri, 15 Dec 2017 13:51:52 +0100 Message-Id: <20171215125205.2969211-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:fwhTjldIYCCfCkW5EzBw8gLeTK+gGk37rVxDoeRBwB7nC08ovks Rl7XBubYK5bn1P1kmCD+tvZFs9mH1q3mAV/Y4XANz8Pijmuq4O0XM3e+94mfmwXWUGrfcZs Y2Effj2O3JJwAn5z+5BIcr+ptG8jG6kJDwX29eyUR2bRY8rgxNfa9gUDLELQFZT0aKIEniY m95lRfZe+cgQYhLnkzlDQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:l08CXcLE/k8=:xaFlPFAJkd7TSc9ODYF620 m91IHZtcxd4/n3seEiUoj38GESWhh9Vp0MYs8KOvFKpSmMEZBVa9vRNENM7cJiQENy7vGdqbV C065TUdnAbD49XoUqYcouh700UZynh1T8N/z2Ltk3JUPj5z74Klp5rGo+ZT8bIBqxWrG7dKiW LSxBRksXVhAsNkI+rGN98ODXFHnD/83Ecb+X7BeKrYxB2hNZcxS2BWS2Huo6b6aOq88qm5zC1 ju2qM4aCtWx8A1nYII7MXlLlIntt1J5Ss5xTy7mAXwT/+/JEvvZ46p0mTdUHVyqEDEoUAQxSL gAAFw0YfYlW6/6ayYYJ+rZSIp2t8N/SWAHsTCYlLN0FH8fhpqQ8df1cw4/JtuW7A+XZ+mOVYs myYyetH5jSF0kYNUnEJHeDnO0l6KeFYitBg5LhrFAoY2RzNkGIo5ka7VrN1aeTx/IiwmHCMRs 6OEt3ZVf6EkcprM6whHNsMyDP6HAEyylZZW8LjWjjJifB12uc0bwMkCuUegj7OmrSPWdXaBZE x1Fh7y+5w408cfosU8maJiBtOjl4pyiolYEQ5X1odefEXeIVeXvS8qjJnvknt/N7AtFty8GSN 3mm7iX+AUUOAuKKGDelJ0acfKaY+PhK6Ecq3Tb2w8vBxQRUsFyBEJ2GKQ4BgvhxQ+cTYgXWPg 2YIao4uIFt4Kvd/6UljGnjkr57rO+tZRxYWgSz+t1SoccXg1nehrNhGO4W2SYCJCl5kEzKmdI U0V0Mbzy/Sl855vpitKWKaUnriulAsqXv2iHTA== Cc: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , linux-kernel@vger.kernel.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 The newly introduced driver has optional suspend/resume functions, causing a warning when CONFIG_PM is disabled: drivers/gpu/drm/tegra/hub.c:749:12: error: 'tegra_display_hub_resume' defined but not used [-Werror=unused-function] drivers/gpu/drm/tegra/hub.c:733:12: error: 'tegra_display_hub_suspend' defined but not used [-Werror=unused-function] This marks them __maybe_unused to shut up the warnings. Fixes: c4755fb9064f ("drm/tegra: Add Tegra186 display hub support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/tegra/hub.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/tegra/hub.c b/drivers/gpu/drm/tegra/hub.c index cccd44711d68..f4911feda9ff 100644 --- a/drivers/gpu/drm/tegra/hub.c +++ b/drivers/gpu/drm/tegra/hub.c @@ -730,7 +730,7 @@ static int tegra_display_hub_remove(struct platform_device *pdev) return err; } -static int tegra_display_hub_suspend(struct device *dev) +static int __maybe_unused tegra_display_hub_suspend(struct device *dev) { struct tegra_display_hub *hub = dev_get_drvdata(dev); int err; @@ -746,7 +746,7 @@ static int tegra_display_hub_suspend(struct device *dev) return 0; } -static int tegra_display_hub_resume(struct device *dev) +static int __maybe_unused tegra_display_hub_resume(struct device *dev) { struct tegra_display_hub *hub = dev_get_drvdata(dev); int err;