From patchwork Fri May 25 15:50:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10427877 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 EC1C9601D5 for ; Fri, 25 May 2018 15:56:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D8D5B2895B for ; Fri, 25 May 2018 15:56:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CD5F9289F2; Fri, 25 May 2018 15:56:17 +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 805012895B for ; Fri, 25 May 2018 15:56:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A97326E97A; Fri, 25 May 2018 15:56:16 +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 3393A6E97A for ; Fri, 25 May 2018 15:56:15 +0000 (UTC) Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LZfCu-1g3FmX01NM-00lRZa; Fri, 25 May 2018 17:50:33 +0200 From: Arnd Bergmann To: Maxime Ripard , David Airlie , Chen-Yu Tsai Subject: [PATCH 1/8] drm/sun4i: mark PM functions as __maybe_unused Date: Fri, 25 May 2018 17:50:08 +0200 Message-Id: <20180525155030.3667352-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K1:C/yJg6rPGXVjaNrv1fHhRuKBVYGdzfq1JK3YSQ2ZG+cGbZyTPs5 vlmW8dyp6S5xpAU+GUJdaaXkpx/IW6hE7J7JWqJnhHhzqi+TUmPvwbSuhvsYZJJ5CWkNvP7 QlR5SkT4YMx21P2Yfh3rO/1HpUxVjpjol3hXP4Mm6VmIp3+on0S4FX17TXVqmjZCGMItWGM stdvVRqNIlCxXZswkjoAg== X-UI-Out-Filterresults: notjunk:1; V01:K0:mrkUzh5WGOc=:J9/cB/L9Y0fKMm7J2lfwfq ka4vip5PdNc5skHijjJpIaqhm1yWPyOLm3jlZyUNyHfdW31tZqKErcSh8BS7E8jCnxaRfD0O7 Ohqy+hdL0tyi57G/BvzA2BBb/Q7ldYk/jvAvUNme5/ox2n30YGlSPl7v9r4JwzVyMA6GWigD5 pON/rtXK0VV5+6XheKMvpA2qVb7V7wghphAdh+/UXpwXuv9CC3L7t0ezt+ds9HmRrH6jhv5eQ 4m5EP4P97jShz2WfAhAiJSON/Rk9+HvXauZU4TTVcPQNQ1W2kkKN4OxF72DVSSkQBR5AjmrbU CQEEFGP3wVhkl5j0s01k49snEzFol6I0g6T1H0kVmUwOZjaWHudXZH+2qmnVouMSriNcUybIy /GgIW5SXb7rZxm5o+R8XJ1lBTEp/eCfDTNTtGeL7QClK4RpON07FHkSO+qLm9bmHvP9qdFbtL tYT1XsZ9obyibhC7RInGilszgS+rhnK9USh/+DdBKjULQgzU49npxf6jh56npE8R7LPWFhF5L D6C4fzA2vJ/834WCSLCWSqFhkpckgNXPDMf8rzn1p4sEtBeX7pQMkIqKpKzHGlkx1dEW82KL7 sV7enOGzQTkciBPpxh5YVBoDJMyPBcY4jNWaFGiDTLLZCAXoJSBOHc05DGYEkx09wpw1luK3+ PxBW8B0Hfd2rxmQO80EAkpeqLaWktg+mqLKdiU6Bh89tcqoWMwJFb6tdm3ftdcg0GaxE= 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: linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Arnd Bergmann , linux-kernel@vger.kernel.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Disabling CONFIG_PM produces a compile time warning when these functions are not referenced: drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1072:12: error: 'sun6i_dsi_runtime_suspend' defined but not used [-Werror=unused-function] static int sun6i_dsi_runtime_suspend(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c:1043:12: error: 'sun6i_dsi_runtime_resume' defined but not used [-Werror=unused-function] static int sun6i_dsi_runtime_resume(struct device *dev) ^~~~~~~~~~~~~~~~~~~~~~~~ Fixes: 133add5b5ad4 ("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index bfbf761f0c1d..d4e7d16a2514 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -1040,7 +1040,7 @@ static int sun6i_dsi_remove(struct platform_device *pdev) return 0; } -static int sun6i_dsi_runtime_resume(struct device *dev) +static int __maybe_unused sun6i_dsi_runtime_resume(struct device *dev) { struct sun6i_dsi *dsi = dev_get_drvdata(dev); @@ -1069,7 +1069,7 @@ static int sun6i_dsi_runtime_resume(struct device *dev) return 0; } -static int sun6i_dsi_runtime_suspend(struct device *dev) +static int __maybe_unused sun6i_dsi_runtime_suspend(struct device *dev) { struct sun6i_dsi *dsi = dev_get_drvdata(dev);