drm/tegra: vic: Fix build warning when CONFIG_PM=n

[ Upstream commit b5d5288a46 ]

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>
Stable-dep-of: c7860cbee9 ("drm/tegra: Fix vmapping of prime buffers")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
YueHaibing 2022-03-05 20:32:00 +08:00 коммит произвёл Greg Kroah-Hartman
Родитель 820b689b4a
Коммит f3450c3341
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -275,7 +275,7 @@ cleanup:
}
static int vic_runtime_resume(struct device *dev)
static int __maybe_unused vic_runtime_resume(struct device *dev)
{
struct vic *vic = dev_get_drvdata(dev);
int err;
@ -309,7 +309,7 @@ disable:
return err;
}
static int vic_runtime_suspend(struct device *dev)
static int __maybe_unused vic_runtime_suspend(struct device *dev)
{
struct vic *vic = dev_get_drvdata(dev);
int err;