Linux Tegra architecture development
 help / color / mirror / Atom feed
* [PATCH] drm/tegra: mark t186 display hub PM functions __maybe_unused
@ 2017-12-15 12:51 Arnd Bergmann
       [not found] ` <20171215125205.2969211-1-arnd-r2nGTMty4D4@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2017-12-15 12:51 UTC (permalink / raw)
  To: Thierry Reding, David Airlie, Jonathan Hunter
  Cc: linux-tegra, dri-devel, Arnd Bergmann, linux-kernel

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 <arnd@arndb.de>
---
 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;
-- 
2.9.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-12-15 15:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-15 12:51 [PATCH] drm/tegra: mark t186 display hub PM functions __maybe_unused Arnd Bergmann
     [not found] ` <20171215125205.2969211-1-arnd-r2nGTMty4D4@public.gmane.org>
2017-12-15 13:10   ` Dmitry Osipenko
     [not found]     ` <0085adc9-a29d-df09-a464-f55d6fd967b9-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-12-15 13:17       ` Arnd Bergmann
2017-12-15 13:33   ` Thierry Reding
2017-12-15 13:36     ` Arnd Bergmann
2017-12-15 15:25     ` Dmitry Osipenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox