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: 142809 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp7416023ljj; Tue, 24 Jul 2018 08:36:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdJwXbov41zumROTugpr1b1eEJEtrFPe7ebYgEXiYZQVMogouijn+oUOb06f6XUulLa/03H X-Received: by 2002:a65:4541:: with SMTP id x1-v6mr16496463pgr.26.1532446574343; Tue, 24 Jul 2018 08:36:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532446574; cv=none; d=google.com; s=arc-20160816; b=zazGGQo9WZ/EdPqfkD3Rvfx2sEuXDuJa/xbrGj73XkHGzaDzkQ5DWcT9vNB9aK3fKg Tm2Y2c4O5J1o5KTF2b4afjidDyrr4jH0pjXhVRx+bRIWs9TqlEqvQAWwqbK/WfatZP2o AsbWyriMnwHnjxuvk2BKD4GKuZl31yFtk6K+zDLyN8hEqorXWW3CPlUJBqxAwBb+/qi6 gXCHLX/vbu0M+7ZTowR6tbX8U5plZ4HGZoRCv6kDdily6KS92xpFwxwnM0Z6Z0crgUuC h45Gb9JnO9h67L9BSqES6q0xtEE1xVboz7aNNTsQqQ96u0yTaPm7fnfYu3gGvFySv9bV s4eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=BeLM7Rnd1NPV0/fUfnApK88bq06oH1oAtxIhVjUcOv8=; b=OLrBMoFnNYbuSaUThyibnLqM9CtuI5O9m9ndf8EHseFuf055MSTFOk/lalYgHJLj75 PI5p6C5zMrCDtyP6Pksgf4jDiBz9abCUWJa+rwn/ZZorp8jgguLKV753w0er54wTF5uL aXPvfhV9Bi0mMhYxXDkFgw1i2S7pxd7e5JFkvE42RmIM+qp0ox+rliRy7brs4YdRml5z BqcE4NfX1hIT4Ue0uQtu/KhrsIk9/+AM+LociloCJYX/8SmmMNrezIliEfPeN1PMcKzg 8ux+0EQRS7wB4I3YT3OzlVR9LIbJLs/5dAnoPrsPhNg+uqc7ONVnUEoG9j2k9je0x5X9 ynVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si11438206pgj.128.2018.07.24.08.36.14; Tue, 24 Jul 2018 08:36:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727643AbeGXQnP (ORCPT + 13 others); Tue, 24 Jul 2018 12:43:15 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:58037 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726857AbeGXQnP (ORCPT ); Tue, 24 Jul 2018 12:43:15 -0400 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 Cc: Arnd Bergmann , David Airlie , Chandan Uddaraju , Abhinav Kumar , Sean Paul , Jeykumar Sankaran , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org 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= Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 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(-) -- 2.18.0 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);