Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/nouveau/gsp: change gv100_gsp from global to static

Smatch reports this issue
gv100.c:46:1: warning: symbol 'gv100_gsp' was not declared. Should it be static?

gv100_gsp is only used in gv100.c so change its
storage-class specifier to static.

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220421133028.724954-1-trix@redhat.com

authored by

Tom Rix and committed by
Lyude Paul
1584f0a1 c5060b09

+1 -1
+1 -1
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/gv100.c
··· 42 42 return 0; 43 43 } 44 44 45 - struct nvkm_gsp_fwif 45 + static struct nvkm_gsp_fwif 46 46 gv100_gsp[] = { 47 47 { -1, gv100_gsp_nofw, &gv100_gsp_flcn }, 48 48 {}