diff options
author | Tom Rix <trix@redhat.com> | 2022-04-18 17:18:42 +0300 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2022-04-18 21:50:00 +0300 |
commit | f6e0a6b09edc61d567ccf6199b3bb6f3c5f9e077 (patch) | |
tree | 671006c1a63fb2b38cf356c73a34c6fab14d4e56 /drivers/gpu/drm/nouveau | |
parent | cabfa2bbe617ddf0a0cc4d01f72b584dae4939ad (diff) | |
download | linux-f6e0a6b09edc61d567ccf6199b3bb6f3c5f9e077.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm/nouveau')
-rw-r--r-- | drivers/gpu/drm/nouveau/dispnv50/base917c.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv50/base917c.c b/drivers/gpu/drm/nouveau/dispnv50/base917c.c index a1baed4fe0e9..ca260509a4f1 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/base917c.c +++ b/drivers/gpu/drm/nouveau/dispnv50/base917c.c @@ -22,7 +22,7 @@ #include "base.h" #include "atom.h" -const u32 +static const u32 base917c_format[] = { DRM_FORMAT_C8, DRM_FORMAT_XRGB8888, |