]> git.itanic.dy.fi Git - linux-stable/commit
drm/tegra: vic: Fix build warning when CONFIG_PM=n
authorYueHaibing <yuehaibing@huawei.com>
Sat, 5 Mar 2022 12:32:00 +0000 (20:32 +0800)
committerThierry Reding <treding@nvidia.com>
Fri, 8 Jul 2022 14:39:19 +0000 (16:39 +0200)
commitb5d5288a46876f6767950449aea310f71ac86277
tree0b69954810be55221744cb16a7a0fe79098c7207
parentf99e689181ea8ede795f2fcd8d658207920469dd
drm/tegra: vic: Fix build warning when CONFIG_PM=n

drivers/gpu/drm/tegra/vic.c:326:12: error: ‘vic_runtime_suspend’ defined but not used [-Werror=unused-function]
 static int vic_runtime_suspend(struct device *dev)
            ^~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/tegra/vic.c:292:12: error: ‘vic_runtime_resume’ defined but not used [-Werror=unused-function]
 static int vic_runtime_resume(struct device *dev)
            ^~~~~~~~~~~~~~~~~~

Mark it as __maybe_unused.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/vic.c