]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: change base917c_format from global to static
authorTom Rix <trix@redhat.com>
Mon, 18 Apr 2022 14:18:42 +0000 (10:18 -0400)
committerLyude Paul <lyude@redhat.com>
Mon, 18 Apr 2022 18:50:00 +0000 (14:50 -0400)
commitfaf63c02bbad8e42ed0d0af5a67ce0f2c191a83e
tree671006c1a63fb2b38cf356c73a34c6fab14d4e56
parent3728d9e820ede0da83adeaee00cff3ba0b2eaa06
drm/nouveau: change base917c_format from global to static

Smatch reports this issue
base917c.c:26:1: warning: symbol 'base917c_format'
  was not declared. Should it be static?

base917c_format is only used in base917.c.  Single
file variables should not be global so change
base917c_format'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/20220418141842.296386-1-trix@redhat.com
drivers/gpu/drm/nouveau/dispnv50/base917c.c