Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] v4l: rcar_fdp1: mark PM functions as __maybe_unused

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Arnd Bergmann and committed by
Mauro Carvalho Chehab
fa4a2fd1 8c2ebcf1

+2 -2
+2 -2
drivers/media/platform/rcar_fdp1.c
··· 2396 2396 return 0; 2397 2397 } 2398 2398 2399 - static int fdp1_pm_runtime_suspend(struct device *dev) 2399 + static int __maybe_unused fdp1_pm_runtime_suspend(struct device *dev) 2400 2400 { 2401 2401 struct fdp1_dev *fdp1 = dev_get_drvdata(dev); 2402 2402 ··· 2405 2405 return 0; 2406 2406 } 2407 2407 2408 - static int fdp1_pm_runtime_resume(struct device *dev) 2408 + static int __maybe_unused fdp1_pm_runtime_resume(struct device *dev) 2409 2409 { 2410 2410 struct fdp1_dev *fdp1 = dev_get_drvdata(dev); 2411 2411