Skip to content

Commit d6c75c2

Browse files
arndbtomba
authored andcommitted
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: b92f7ea ("drm/omap: dss: Make use of the helper macro SET_RUNTIME_PM_OPS()") Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Signed-off-by: Tomi Valkeinen <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent e02b5cc commit d6c75c2

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

drivers/gpu/drm/omapdrm/dss/dispc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4869,7 +4869,7 @@ static int dispc_remove(struct platform_device *pdev)
48694869
return 0;
48704870
}
48714871

4872-
static int dispc_runtime_suspend(struct device *dev)
4872+
static __maybe_unused int dispc_runtime_suspend(struct device *dev)
48734873
{
48744874
struct dispc_device *dispc = dev_get_drvdata(dev);
48754875

@@ -4884,7 +4884,7 @@ static int dispc_runtime_suspend(struct device *dev)
48844884
return 0;
48854885
}
48864886

4887-
static int dispc_runtime_resume(struct device *dev)
4887+
static __maybe_unused int dispc_runtime_resume(struct device *dev)
48884888
{
48894889
struct dispc_device *dispc = dev_get_drvdata(dev);
48904890

drivers/gpu/drm/omapdrm/dss/dsi.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5058,7 +5058,7 @@ static int dsi_remove(struct platform_device *pdev)
50585058
return 0;
50595059
}
50605060

5061-
static int dsi_runtime_suspend(struct device *dev)
5061+
static __maybe_unused int dsi_runtime_suspend(struct device *dev)
50625062
{
50635063
struct dsi_data *dsi = dev_get_drvdata(dev);
50645064

@@ -5071,7 +5071,7 @@ static int dsi_runtime_suspend(struct device *dev)
50715071
return 0;
50725072
}
50735073

5074-
static int dsi_runtime_resume(struct device *dev)
5074+
static __maybe_unused int dsi_runtime_resume(struct device *dev)
50755075
{
50765076
struct dsi_data *dsi = dev_get_drvdata(dev);
50775077

drivers/gpu/drm/omapdrm/dss/dss.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1569,7 +1569,7 @@ static void dss_shutdown(struct platform_device *pdev)
15691569
DSSDBG("shutdown\n");
15701570
}
15711571

1572-
static int dss_runtime_suspend(struct device *dev)
1572+
static __maybe_unused int dss_runtime_suspend(struct device *dev)
15731573
{
15741574
struct dss_device *dss = dev_get_drvdata(dev);
15751575

@@ -1581,7 +1581,7 @@ static int dss_runtime_suspend(struct device *dev)
15811581
return 0;
15821582
}
15831583

1584-
static int dss_runtime_resume(struct device *dev)
1584+
static __maybe_unused int dss_runtime_resume(struct device *dev)
15851585
{
15861586
struct dss_device *dss = dev_get_drvdata(dev);
15871587
int r;

drivers/gpu/drm/omapdrm/dss/venc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ static int venc_remove(struct platform_device *pdev)
879879
return 0;
880880
}
881881

882-
static int venc_runtime_suspend(struct device *dev)
882+
static __maybe_unused int venc_runtime_suspend(struct device *dev)
883883
{
884884
struct venc_device *venc = dev_get_drvdata(dev);
885885

@@ -889,7 +889,7 @@ static int venc_runtime_suspend(struct device *dev)
889889
return 0;
890890
}
891891

892-
static int venc_runtime_resume(struct device *dev)
892+
static __maybe_unused int venc_runtime_resume(struct device *dev)
893893
{
894894
struct venc_device *venc = dev_get_drvdata(dev);
895895

0 commit comments

Comments
 (0)