drm/nouveau/acr/ga102: set variable ga102_gsps storage-class-specifier to static
authorTom Rix <trix@redhat.com>
Wed, 17 May 2023 13:31:12 +0000 (09:31 -0400)
committerKarol Herbst <kherbst@redhat.com>
Mon, 22 May 2023 14:39:04 +0000 (16:39 +0200)
smatch reports
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c:49:1: warning: symbol
  'ga102_gsps' was not declared. Should it be static?

This variable is only used in its defining file, so it should be static

Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230517133112.873856-1-trix@redhat.com
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c

index 525267412c3e1c6c8ec55a8b3e1f29c8eeef4093..a3996ceca99552de6415056d4b821285918279be 100644 (file)
@@ -45,7 +45,7 @@ ga102_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
 ga102_gsps[] = {
        { -1, ga102_gsp_nofw, &ga102_gsp },
        {}