]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/kms/gv100: use static for gv100_disp_core_mthd_[base|sor]
authorTom Rix <trix@redhat.com>
Fri, 22 Apr 2022 18:51:32 +0000 (14:51 -0400)
committerLyude Paul <lyude@redhat.com>
Tue, 26 Apr 2022 17:27:32 +0000 (13:27 -0400)
commit8620bb71e5b05c902e1bbc26f683807e9abaca1f
treeb16ff6763d09a0ac4f83fdc055617a189b9dca98
parentf14e53561bc20577405aeda27e8b07858a12c540
drm/nouveau/kms/gv100: use static for gv100_disp_core_mthd_[base|sor]

Sparse reports these issues
coregv100.c:27:1: warning: symbol 'gv100_disp_core_mthd_base' was not declared. Should it be static?
coregv100.c:43:1: warning: symbol 'gv100_disp_core_mthd_sor' was not declared. Should it be static?

These variables are only used in coregv100.c.  Single file use
variables should be static, so add static to their storage-class specifier.

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/20220422185132.3163248-1-trix@redhat.com
drivers/gpu/drm/nouveau/nvkm/engine/disp/coregv100.c