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

Configure Feed

Select the types of activity you want to include in your feed.

omapdrm: dss: mark runtime PM functions __maybe_unused

Using the SET_RUNTIME_PM_OPS() macro causes a warning about the
referenced functions when they are marked static but not __maybe_unused:

drivers/gpu/drm/omapdrm/dss/dss.c:1572:12: error: unused function 'dss_runtime_suspend' [-Werror,-Wunused-function]
drivers/gpu/drm/omapdrm/dss/dss.c:1584:12: error: unused function 'dss_runtime_resume' [-Werror,-Wunused-function]
drivers/gpu/drm/omapdrm/dss/dispc.c:4845:12: error: unused function 'dispc_runtime_suspend' [-Werror,-Wunused-function]
drivers/gpu/drm/omapdrm/dss/dispc.c:4860:12: error: unused function 'dispc_runtime_resume' [-Werror,-Wunused-function]

Fixes: b92f7ea556f8 ("drm/omap: dss: Make use of the helper macro SET_RUNTIME_PM_OPS()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211205131612.3192652-1-arnd@kernel.org

authored by

Arnd Bergmann and committed by
Tomi Valkeinen
d6c75c29 e02b5cc9

+8 -8
+2 -2
drivers/gpu/drm/omapdrm/dss/dispc.c
··· 4869 4869 return 0; 4870 4870 } 4871 4871 4872 - static int dispc_runtime_suspend(struct device *dev) 4872 + static __maybe_unused int dispc_runtime_suspend(struct device *dev) 4873 4873 { 4874 4874 struct dispc_device *dispc = dev_get_drvdata(dev); 4875 4875 ··· 4884 4884 return 0; 4885 4885 } 4886 4886 4887 - static int dispc_runtime_resume(struct device *dev) 4887 + static __maybe_unused int dispc_runtime_resume(struct device *dev) 4888 4888 { 4889 4889 struct dispc_device *dispc = dev_get_drvdata(dev); 4890 4890
+2 -2
drivers/gpu/drm/omapdrm/dss/dsi.c
··· 5058 5058 return 0; 5059 5059 } 5060 5060 5061 - static int dsi_runtime_suspend(struct device *dev) 5061 + static __maybe_unused int dsi_runtime_suspend(struct device *dev) 5062 5062 { 5063 5063 struct dsi_data *dsi = dev_get_drvdata(dev); 5064 5064 ··· 5071 5071 return 0; 5072 5072 } 5073 5073 5074 - static int dsi_runtime_resume(struct device *dev) 5074 + static __maybe_unused int dsi_runtime_resume(struct device *dev) 5075 5075 { 5076 5076 struct dsi_data *dsi = dev_get_drvdata(dev); 5077 5077
+2 -2
drivers/gpu/drm/omapdrm/dss/dss.c
··· 1569 1569 DSSDBG("shutdown\n"); 1570 1570 } 1571 1571 1572 - static int dss_runtime_suspend(struct device *dev) 1572 + static __maybe_unused int dss_runtime_suspend(struct device *dev) 1573 1573 { 1574 1574 struct dss_device *dss = dev_get_drvdata(dev); 1575 1575 ··· 1581 1581 return 0; 1582 1582 } 1583 1583 1584 - static int dss_runtime_resume(struct device *dev) 1584 + static __maybe_unused int dss_runtime_resume(struct device *dev) 1585 1585 { 1586 1586 struct dss_device *dss = dev_get_drvdata(dev); 1587 1587 int r;
+2 -2
drivers/gpu/drm/omapdrm/dss/venc.c
··· 879 879 return 0; 880 880 } 881 881 882 - static int venc_runtime_suspend(struct device *dev) 882 + static __maybe_unused int venc_runtime_suspend(struct device *dev) 883 883 { 884 884 struct venc_device *venc = dev_get_drvdata(dev); 885 885 ··· 889 889 return 0; 890 890 } 891 891 892 - static int venc_runtime_resume(struct device *dev) 892 + static __maybe_unused int venc_runtime_resume(struct device *dev) 893 893 { 894 894 struct venc_device *venc = dev_get_drvdata(dev); 895 895