Skip to contentSkip to conversation

drivers: gpu: drm: Fix warning for incomplete Declarations in client.c

PATCH New Vaibhav Kothari 1 participant 1 message Jan 2, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: gpu: drm: Fix warning for incomplete Declarations in client.c

This patch fixes the Sparse Warning "symbol was not declared. Should it be static?" in nvkm/core/client.c

---
 drivers/gpu/drm/nouveau/nvkm/core/client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/core/client.c +1 -1
index ac67120..0c8c55c 100644
@@ -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,
Signature · 1 line
2.7.4