From: Arnd Bergmann Date: Fri, 18 Nov 2016 16:16:04 +0000 (-0200) Subject: [media] v4l: rcar_fdp1: mark PM functions as __maybe_unused X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fa4a2fd17dc5d2d1fbad7ace78d39d7fea20d78e;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [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 Signed-off-by: Mauro Carvalho Chehab --- 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);