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: 122083 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp428528qgn; Fri, 15 Dec 2017 04:52:21 -0800 (PST) X-Google-Smtp-Source: ACJfBosggVmC901keW2UpmKDsx7fDmO2fBxnViSeN0Al6XPcAqlQJB0Py9l/3p+WdFafAbq3j5fh X-Received: by 10.98.59.139 with SMTP id w11mr13497173pfj.188.1513342341433; Fri, 15 Dec 2017 04:52:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513342341; cv=none; d=google.com; s=arc-20160816; b=IyIGVtCVBHxFxgWKkJ33osm5DFRwexXIsXhtVvySwqPdZRf+M3e+GzUMtFizWY8AWd EFjQr1S7QE1yTVX8jzaM7sc8YzE2gh7Oc0pCEG5iMf9QafQ1TjJrPMhfo+SeW0DvxxfW gRwZW9jOtn7kvT1WkxBXVlGZXrmSsm3d8jffsDL1p3O44qfGUgeBessga3CK/xk2Qbjj +gR+h3Y1hKBcba0jtlyTJxXKamiMv0WGMnbQUTYSn4/TYK5nyPAhIO3VFcpHcrvijfX+ HIYzvpnOHmqgOm/Sta5aEi/ir9ZPfqosucG9lOaICDUdj9SytjYh5Y2WRnZsKif0xv8f YO1g== 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=x/J0Hpfaa0bH9TfwghBL73FIqgzOkqC1+Dx3/3yFH1s=; b=zd6Ujg1vxJs+nLsBhP83/reTw6t1kTMMNIjGiy1900pBI4L8FE1t7byjEoMMcGiZX3 3n66sAmy+F0PAQISSsg6nQSkICyfit7n61Q/VWuXZiJlBKf8uwFQrWD2fEvoNrNLbygE +FK5U4woRWlNak/ExCt/ZCFT8kiYfnbBHfENZWZL+LMeFWM08kpeDM8Jllvf3aDnh+V1 JE6vbq3tc82sBGpsb5R/E0WcQ9XAjpE9wFq59XeBLJHtSPlJL9wMGJQ2LV4O/xuN0Z08 S8n57FZK/PPXx3N1AtHNqEWvlAicWNS2DxSj/fX2pXxfZeHOTRJkhs8W1F9ztLwRBHQO E0tQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 f13si4449038pgp.297.2017.12.15.04.52.21; Fri, 15 Dec 2017 04:52:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756098AbdLOMwR (ORCPT + 20 others); Fri, 15 Dec 2017 07:52:17 -0500 Received: from mout.kundenserver.de ([212.227.17.13]:62071 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755422AbdLOMwO (ORCPT ); Fri, 15 Dec 2017 07:52:14 -0500 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 Cc: Arnd Bergmann , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/tegra: mark t186 display hub PM functions __maybe_unused Date: Fri, 15 Dec 2017 13:51:52 +0100 Message-Id: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EzKmdI U0V0Mbzy/Sl855vpitKWKaUnriulAsqXv2iHTA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.9.0 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;