diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-03-23 08:48:57 +0100 |
---|---|---|
committer | Karol Herbst <kherbst@redhat.com> | 2021-11-12 23:46:04 +0100 |
commit | 5e18b9737004ef6f34862f6fb39d3c9027a4044a (patch) | |
tree | 45ee490563c63d04d0029258027a03714f3f0fd6 /drivers/gpu/drm | |
parent | drm/nouveau/pmu/gm200-: use alternate falcon reset sequence (diff) | |
download | linux-5e18b9737004ef6f34862f6fb39d3c9027a4044a.tar.xz linux-5e18b9737004ef6f34862f6fb39d3c9027a4044a.zip |
drm/nouveau/core/client: Mark nvkm_uclient_sclass with static keyword
Fix the following sparse warning:
drivers/gpu/drm/nouveau/nvkm/core/client.c:64:1: warning: symbol 'nvkm_uclient_sclass' was not declared. Should it be static?
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://gitlab.freedesktop.org/drm/nouveau/-/merge_requests/10
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/core/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/core/client.c b/drivers/gpu/drm/nouveau/nvkm/core/client.c index ac671202919e..0c8c55c73b12 100644 --- a/drivers/gpu/drm/nouveau/nvkm/core/client.c +++ b/drivers/gpu/drm/nouveau/nvkm/core/client.c @@ -60,7 +60,7 @@ nvkm_uclient_new(const struct nvkm_oclass *oclass, void *argv, u32 argc, return 0; } -const struct nvkm_sclass +static const struct nvkm_sclass nvkm_uclient_sclass = { .oclass = NVIF_CLASS_CLIENT, .minver = 0, |