aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/engine/gr
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2022-04-18 11:28:10 -0400
committerLyude Paul <lyude@redhat.com>2022-04-18 14:54:13 -0400
commitc6ed9f66eb70aeaac9998bd3552ada740d90e20c (patch)
treeb40325750573a58e78f938c37812f104bf54bbc5 /drivers/gpu/drm/nouveau/nvkm/engine/gr
parentdrm/nouveau: change base917c_format from global to static (diff)
downloadlinux-dev-c6ed9f66eb70aeaac9998bd3552ada740d90e20c.tar.xz
linux-dev-c6ed9f66eb70aeaac9998bd3552ada740d90e20c.zip
drm/nouveau/gr/gf100-: change gf108_gr_fwif from global to static
Smatch reports this issue gf108.c:147:1: warning: symbol 'gf108_gr_fwif' was not declared. Should it be static? gf108_gr_fwif is only used in gf108.c. Single file variables should not be global so change gf108_gr_fwif's 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/20220418152810.3280502-1-trix@redhat.com
Diffstat (limited to 'drivers/gpu/drm/nouveau/nvkm/engine/gr')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
index 030640bb3dca..ab3760e804b8 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/gr/gf108.c
@@ -143,7 +143,7 @@ gf108_gr = {
}
};
-const struct gf100_gr_fwif
+static const struct gf100_gr_fwif
gf108_gr_fwif[] = {
{ -1, gf100_gr_load, &gf108_gr },
{ -1, gf100_gr_nofw, &gf108_gr },