From patchwork Tue Jul 24 15:35:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10542355 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ECF7290E3 for ; Tue, 24 Jul 2018 15:36:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCEE02883C for ; Tue, 24 Jul 2018 15:36:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA93F28A7E; Tue, 24 Jul 2018 15:36: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=-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 94B3328932 for ; Tue, 24 Jul 2018 15:36:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 762B889F6D; Tue, 24 Jul 2018 15:36:13 +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 3C0E889C21 for ; Tue, 24 Jul 2018 15:36:10 +0000 (UTC) Received: from wuerfel.lan ([109.193.40.16]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0LzJvV-1g3pci2AaX-014WD0; Tue, 24 Jul 2018 17:36:05 +0200 From: Arnd Bergmann To: Rob Clark Subject: [PATCH] drm/msm: mark PM functions as __maybe_unused Date: Tue, 24 Jul 2018 17:35:37 +0200 Message-Id: <20180724153604.2811956-1-arnd@arndb.de> X-Mailer: git-send-email 2.18.0 X-Provags-ID: V03:K1:DJTuRnuOj8UrBO9tVhzV4Zi9Mv/Ug1nD38q9r4vtPCdO56pw3N8 WKLHGzFvsDaOd2dNCxgTbNgvmt4uB6lLMbX/+WW7Ku9ZXtAlIzAVG5RtQ+6oVqpMAn9eztF ltujChWjqudxTV5Mq7PS26Bf3TGEc6UDg+fTwkpc01uO4RDZkUpowCq69wJE1oGqj58tr93 X6F1Qxucc518F9jw30jSw== X-UI-Out-Filterresults: notjunk:1;V01:K0:XEKmNL+ONpo=:Rs0gIjNbW9+m+VIYYuApkR 7Qn10a5DG0o4BbkBcNJ0l09Canu2y9VfGR1nvw/EWZyeU6lJk93bdfdek+qBXsCugvPuH5ZpI aAhfGFIZALwDd7NALk5e2dhctq1MsI3tuqRcNjKkMj/3GxPQYYLQdSnf2bHavBxdQ1naXWFld Ygw7l5GP2NpR4NQW6VcNO5bHTtrsYZFSc14PNtPejFEtJ7zKMun+h4lVG2Dn6mPlsvc7+xDEd 36y4F9+nYueU16tMX5pPxxFEAdmk2mqhXAHgvb77BpHsFBjWeKvJ6xsBiN/ndzo9OApnmExxq +jUpM9ww9Q4lyrAu+mPbzp76gTj8GiyD4PA4fdt2MFHcIwagX/ED0acsBjK2sJOtNp1Tkh3RT t/pwFug+NFPV3pNq2El9x2KrPw7klFQjRrq/UNutYvtQKzJUI5csIoym0x9Wi1VAN/O2e/pcq Hwma1aHVzbZhuw9WimyUq+azux+8DMEMbxZup+JBaPMzVmDSQx6ClniJa6khMCz8dz9VtXoJL A2GP/9s4U1xdyMg4ktr3xW2b+jLXsZg2sKkLYyCw/xznaJ/8exU4EKYkyncEhw2No7KpCa6ta 6ruJWfNCD7JAlQGYq02e00X3BvvWyGb7rDPt5noB9IGNk2XOChl3crUzF3D9Tmujn9AH/G8Sz RhJjUCbxAW+ejBpnWLxBcTZfbZ2OGDYZfBRDji2R8u2TvqfqmX/i27PHQNT4yZU8dC68= 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 , David Airlie , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Abhinav Kumar , dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Chandan Uddaraju MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP The suspend/resume functions are not referenced when power management is disabled: drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:1288:12: error: 'dpu_runtime_resume' defined but not used [-Werror=unused-function] drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c:1261:12: error: 'dpu_runtime_suspend' defined but not used [-Werror=unused-function] This marks them as __maybe_unused to let the compiler drop the functions without complaining. Fixes: 591225291ca2 ("drm/msm: Add SDM845 DPU support") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c index 8d4678d29cc7..1c0838801e78 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c @@ -1258,7 +1258,7 @@ static int dpu_dev_remove(struct platform_device *pdev) return 0; } -static int dpu_runtime_suspend(struct device *dev) +static int __maybe_unused dpu_runtime_suspend(struct device *dev) { int rc = -1; struct platform_device *pdev = to_platform_device(dev); @@ -1285,7 +1285,7 @@ static int dpu_runtime_suspend(struct device *dev) return rc; } -static int dpu_runtime_resume(struct device *dev) +static int __maybe_unused dpu_runtime_resume(struct device *dev) { int rc = -1; struct platform_device *pdev = to_platform_device(dev);