diff options
author | YueHaibing <yuehaibing@huawei.com> | 2022-03-05 13:32:00 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2022-07-08 16:39:19 +0200 |
commit | b5d5288a46876f6767950449aea310f71ac86277 (patch) | |
tree | 0b69954810be55221744cb16a7a0fe79098c7207 /drivers/gpu/drm/tegra/vic.c | |
parent | gpu: host1x: Register context bus unconditionally (diff) | |
download | linux-b5d5288a46876f6767950449aea310f71ac86277.tar.xz linux-b5d5288a46876f6767950449aea310f71ac86277.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/gpu/drm/tegra/vic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c index c1734f823d04..b14b84494be0 100644 --- a/drivers/gpu/drm/tegra/vic.c +++ b/drivers/gpu/drm/tegra/vic.c @@ -323,7 +323,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; @@ -357,7 +357,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; |