]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: change cik_default_state table from global to static
authorTom Rix <trix@redhat.com>
Sat, 23 Apr 2022 13:44:02 +0000 (09:44 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Apr 2022 15:43:51 +0000 (11:43 -0400)
commitc63899569af3e80c64bf52cfd0544eef8691ed6f
tree6222d4efe57463ca683de0b27ae5d8256664fff9
parent6e7f977e773063baa567ca5f3b7911f7faa45be6
drm/radeon: change cik_default_state table from global to static

Sparse reports these issues
cik_blit_shaders.c:31:11: warning: symbol 'cik_default_state' was not declared. Should it be static?
cik_blit_shaders.c:246:11: warning: symbol 'cik_default_size' was not declared. Should it be static?

cik_default_state and cik_default_size are only used in cik.c. Single file symbols
should be static. So move their definitions to cik_blit_shaders.h and change their
storage-class-specifier to static.

Remove unneeded cik_blit_shader.c

Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/Makefile
drivers/gpu/drm/radeon/cik_blit_shaders.c [deleted file]
drivers/gpu/drm/radeon/cik_blit_shaders.h