Skip to content

Commit cf0c4bc

Browse files
Tom Rixkarolherbst
authored andcommitted
drm/nouveau/acr/ga102: set variable ga102_gsps storage-class-specifier to static
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
1 parent 7980286 commit cf0c4bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/gpu/drm/nouveau/nvkm/subdev/gsp

drivers/gpu/drm/nouveau/nvkm/subdev/gsp/ga102.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ ga102_gsp_nofw(struct nvkm_gsp *gsp, int ver, const struct nvkm_gsp_fwif *fwif)
4545
return 0;
4646
}
4747

48-
struct nvkm_gsp_fwif
48+
static struct nvkm_gsp_fwif
4949
ga102_gsps[] = {
5050
{ -1, ga102_gsp_nofw, &ga102_gsp },
5151
{}

0 commit comments

Comments
 (0)