media: camss: mark PM functions as __maybe_unused
Subsystems (4)
PATCH 1/1 media: camss: mark PM functions as __maybe_unused
The empty suspend/resume functions cause a build warning when they are unused:
drivers/media/platform/qcom/camss/camss.c:1001:12: error: 'camss_runtime_resume' defined but not used [-Werror=unused-function] drivers/media/platform/qcom/camss/camss.c:996:12: error: 'camss_runtime_suspend' defined but not used [-Werror=unused-function]
Mark them as __maybe_unused so the compiler can silently drop them.
--- drivers/media/platform/qcom/camss/camss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/media/platform/qcom/camss/camss.c +2 -2
@@ -993,12 +993,12 @@ static const struct of_device_id camss_dt_match[] = {MODULE_DEVICE_TABLE (of, camss_dt_match); -static int camss_runtime_suspend (struct device *dev) +static int __maybe_unused camss_runtime_suspend (struct device *dev) {return 0 ; } -static int camss_runtime_resume (struct device *dev) +static int __maybe_unused camss_runtime_resume (struct device *dev) {return 0 ; }
Signature · 1 line
2.18.0
Thank you Arnd.
Quoted 10 lines · Arnd Bergmann
The empty suspend/resume functions cause a build warning when they are unused:
drivers/media/platform/qcom/camss/camss.c:1001:12: error: 'camss_runtime_resume' defined but not used [-Werror=unused-function]drivers/media/platform/qcom/camss/camss.c:996:12: error: 'camss_runtime_suspend' defined but not used [-Werror=unused-function]Mark them as
__maybe_unusedso the compiler can silently drop them.Fixes 02afa816dbbf ("media: camss: Add basic runtime PM support")Signed-off-by Arnd Bergmann <[email protected]>
Quoted 24 lines
--- drivers/media/platform/qcom/camss/camss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/media/platform/qcom/camss/camss.c +2
-2@@ -993,12 +993,12 @@ static const struct of_device_id camss_dt_match[] = {MODULE_DEVICE_TABLE (of, camss_dt_match); -static int camss_runtime_suspend (struct device *dev) +static int __maybe_unused camss_runtime_suspend (struct device *dev) {return 0 ; } -static int camss_runtime_resume (struct device *dev) +static int __maybe_unused camss_runtime_resume (struct device *dev) {return 0 ; }
Signature · 2 lines
Best regards, Todor Tomov
Quoted 10 lines · Arnd Bergmann
The empty suspend/resume functions cause a build warning when they are unused:
drivers/media/platform/qcom/camss/camss.c:1001:12: error: 'camss_runtime_resume' defined but not used [-Werror=unused-function]drivers/media/platform/qcom/camss/camss.c:996:12: error: 'camss_runtime_suspend' defined but not used [-Werror=unused-function]Mark them as
__maybe_unusedso the compiler can silently drop them.Fixes 02afa816dbbf ("media: camss: Add basic runtime PM support")Signed-off-by Arnd Bergmann <[email protected]>
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds