OSDN Git Service

drm/nouveau/gsp: change gv100_gsp from global to static
authorTom Rix <trix@redhat.com>
Thu, 21 Apr 2022 13:30:28 +0000 (09:30 -0400)
committerLyude Paul <lyude@redhat.com>
Fri, 22 Apr 2022 17:08:43 +0000 (13:08 -0400)
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
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/gv100.c

index 2ac7fc9..6c4ef62 100644 (file)
@@ -42,7 +42,7 @@ gv100_gsp_nofw(struct nvkm_gsp *gsp, int ver, const struct nvkm_gsp_fwif *fwif)
        return 0;
 }
 
-struct nvkm_gsp_fwif
+static struct nvkm_gsp_fwif
 gv100_gsp[] = {
        { -1, gv100_gsp_nofw, &gv100_gsp_flcn },
        {}