Linux Media Controller development
 help / color / mirror / Atom feed
* [PATCH 1/3] [media] v4l: rcar_fdp1: mark PM functions as __maybe_unused
@ 2016-11-18 16:16 Arnd Bergmann
  2016-11-18 16:16 ` [PATCH 2/3] [media] v4l: rcar_fdp1: add FCP dependency Arnd Bergmann
  2016-11-18 16:16 ` [PATCH 3/3] [media] mtk-mdp: mark PM functions as __maybe_unused Arnd Bergmann
  0 siblings, 2 replies; 5+ messages in thread
From: Arnd Bergmann @ 2016-11-18 16:16 UTC (permalink / raw)
  To: Mauro Carvalho Chehab
  Cc: Arnd Bergmann, Kieran Bingham, Laurent Pinchart, linux-media,
	linux-renesas-soc, linux-kernel

The new driver produces a warning when CONFIG_PM is disabled:

platform/rcar_fdp1.c:2408:12: error: 'fdp1_pm_runtime_resume' defined but not used [-Werror=unused-function]
platform/rcar_fdp1.c:2399:12: error: 'fdp1_pm_runtime_suspend' defined but not used [-Werror=unused-function]

This marks the two functions as __maybe_unused.

Fixes: 4710b752e029 ("[media] v4l: Add Renesas R-Car FDP1 Driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 drivers/media/platform/rcar_fdp1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/platform/rcar_fdp1.c b/drivers/media/platform/rcar_fdp1.c
index dd1a6ea17f22..674cc1309b43 100644
--- a/drivers/media/platform/rcar_fdp1.c
+++ b/drivers/media/platform/rcar_fdp1.c
@@ -2396,7 +2396,7 @@ static int fdp1_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static int fdp1_pm_runtime_suspend(struct device *dev)
+static int __maybe_unused fdp1_pm_runtime_suspend(struct device *dev)
 {
 	struct fdp1_dev *fdp1 = dev_get_drvdata(dev);
 
@@ -2405,7 +2405,7 @@ static int fdp1_pm_runtime_suspend(struct device *dev)
 	return 0;
 }
 
-static int fdp1_pm_runtime_resume(struct device *dev)
+static int __maybe_unused fdp1_pm_runtime_resume(struct device *dev)
 {
 	struct fdp1_dev *fdp1 = dev_get_drvdata(dev);
 
-- 
2.9.0


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

end of thread, other threads:[~2016-11-18 19:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-18 16:16 [PATCH 1/3] [media] v4l: rcar_fdp1: mark PM functions as __maybe_unused Arnd Bergmann
2016-11-18 16:16 ` [PATCH 2/3] [media] v4l: rcar_fdp1: add FCP dependency Arnd Bergmann
2016-11-18 17:08   ` Geert Uytterhoeven
2016-11-18 19:36     ` Arnd Bergmann
2016-11-18 16:16 ` [PATCH 3/3] [media] mtk-mdp: mark PM functions as __maybe_unused Arnd Bergmann

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