Commit d6c75c29 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Tomi Valkeinen
Browse files

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: b92f7ea5 ("drm/omap: dss: Make use of the helper macro SET_RUNTIME_PM_OPS()")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211205131612.3192652-1-arnd@kernel.org
parent e02b5cc9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -4869,7 +4869,7 @@ static int dispc_remove(struct platform_device *pdev)
	return 0;
}

static int dispc_runtime_suspend(struct device *dev)
static __maybe_unused int dispc_runtime_suspend(struct device *dev)
{
	struct dispc_device *dispc = dev_get_drvdata(dev);

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

static int dispc_runtime_resume(struct device *dev)
static __maybe_unused int dispc_runtime_resume(struct device *dev)
{
	struct dispc_device *dispc = dev_get_drvdata(dev);

+2 −2
Original line number Diff line number Diff line
@@ -5058,7 +5058,7 @@ static int dsi_remove(struct platform_device *pdev)
	return 0;
}

static int dsi_runtime_suspend(struct device *dev)
static __maybe_unused int dsi_runtime_suspend(struct device *dev)
{
	struct dsi_data *dsi = dev_get_drvdata(dev);

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

static int dsi_runtime_resume(struct device *dev)
static __maybe_unused int dsi_runtime_resume(struct device *dev)
{
	struct dsi_data *dsi = dev_get_drvdata(dev);

+2 −2
Original line number Diff line number Diff line
@@ -1569,7 +1569,7 @@ static void dss_shutdown(struct platform_device *pdev)
	DSSDBG("shutdown\n");
}

static int dss_runtime_suspend(struct device *dev)
static __maybe_unused int dss_runtime_suspend(struct device *dev)
{
	struct dss_device *dss = dev_get_drvdata(dev);

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

static int dss_runtime_resume(struct device *dev)
static __maybe_unused int dss_runtime_resume(struct device *dev)
{
	struct dss_device *dss = dev_get_drvdata(dev);
	int r;
+2 −2
Original line number Diff line number Diff line
@@ -879,7 +879,7 @@ static int venc_remove(struct platform_device *pdev)
	return 0;
}

static int venc_runtime_suspend(struct device *dev)
static __maybe_unused int venc_runtime_suspend(struct device *dev)
{
	struct venc_device *venc = dev_get_drvdata(dev);

@@ -889,7 +889,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 venc_device *venc = dev_get_drvdata(dev);