Skip to contentSkip to conversation

drm/nouveau/disp: set varaiable gv100_disp_core_mthd_base storage-class-specifier to static

PATCH New Tom Rix 1 participant 1 message Apr 4, 2023

Subsystems (3)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 drm/nouveau/disp: set varaiable gv100_disp_core_mthd_base storage-class-specifier to static

smatch reports drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c:610:1: warning: symbol
'gv100_disp_core_mthd_base' was not declared. Should it be static?

This variable is only used in one file so it should be static.

---
 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c +1 -1
index 115d0997fd62..4ebc030e40d1 100644
@@ -606,7 +606,7 @@ gv100_disp_curs = {
 	.user = 73,
 };
 
-const struct nvkm_disp_mthd_list
+static const struct nvkm_disp_mthd_list
 gv100_disp_core_mthd_base = {
 	.mthd = 0x0000,
 	.addr = 0x000000,
Signature · 1 line
2.27.0