]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
media: venus: mark venc and vdec PM functions as __maybe_unused
authorStanimir Varbanov <stanimir.varbanov@linaro.org>
Fri, 18 Aug 2017 14:16:02 +0000 (10:16 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Sat, 26 Aug 2017 12:44:07 +0000 (08:44 -0400)
Without PM support gcc could warns about unused functions, thus
mark runtime_suspend/resume as __maybe_unused.

Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/qcom/venus/vdec.c
drivers/media/platform/qcom/venus/venc.c

index eb0c1c51cfeff076b6b932b734b298b8e2fe9e8a..44d4848e878ada373ae45881eba2cc1d4d315bb5 100644 (file)
@@ -1103,8 +1103,7 @@ static int vdec_remove(struct platform_device *pdev)
        return 0;
 }
 
-#ifdef CONFIG_PM
-static int vdec_runtime_suspend(struct device *dev)
+static __maybe_unused int vdec_runtime_suspend(struct device *dev)
 {
        struct venus_core *core = dev_get_drvdata(dev);
 
@@ -1118,7 +1117,7 @@ static int vdec_runtime_suspend(struct device *dev)
        return 0;
 }
 
-static int vdec_runtime_resume(struct device *dev)
+static __maybe_unused int vdec_runtime_resume(struct device *dev)
 {
        struct venus_core *core = dev_get_drvdata(dev);
        int ret;
@@ -1132,7 +1131,6 @@ static int vdec_runtime_resume(struct device *dev)
 
        return ret;
 }
-#endif
 
 static const struct dev_pm_ops vdec_pm_ops = {
        SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,
index 39748e7a08e44acef00e4b032cc0296617f9048c..3f79da01840268bc94ed840583cf59a44bbe4d1c 100644 (file)
@@ -1224,8 +1224,7 @@ static int venc_remove(struct platform_device *pdev)
        return 0;
 }
 
-#ifdef CONFIG_PM
-static int venc_runtime_suspend(struct device *dev)
+static __maybe_unused int venc_runtime_suspend(struct device *dev)
 {
        struct venus_core *core = dev_get_drvdata(dev);
 
@@ -1239,7 +1238,7 @@ static int venc_runtime_suspend(struct device *dev)
        return 0;
 }
 
-static int venc_runtime_resume(struct device *dev)
+static __maybe_unused int venc_runtime_resume(struct device *dev)
 {
        struct venus_core *core = dev_get_drvdata(dev);
        int ret;
@@ -1253,7 +1252,6 @@ static int venc_runtime_resume(struct device *dev)
 
        return ret;
 }
-#endif
 
 static const struct dev_pm_ops venc_pm_ops = {
        SET_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend,