]> git.baikalelectronics.ru Git - kernel.git/commit
drm/radeon: make array encoded_lanes static
authorColin Ian King <colin.king@canonical.com>
Wed, 15 Sep 2021 11:36:11 +0000 (12:36 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 Sep 2021 19:17:28 +0000 (15:17 -0400)
commitcd9709f9a36e70c4b5f6f05a14cd100306307357
tree2baf211211498c44ce731d778e17abd0178f4c5f
parentf5c2620083616e43fe78257ee52ded20153b116a
drm/radeon: make array encoded_lanes static

Don't populate the read-only array encoded_lanes on the stack but instead it
static. Also makes the object code smaller by 97 bytes:

Before:
   text    data    bss     dec    hex filename
  38899    8064      0   46963   b773 ./drivers/gpu/drm/radeon/r600_dpm.o

After:
   text    data    bss     dec    hex filename
  38738    8128      0   46866   b712 ./drivers/gpu/drm/radeon/r600_dpm.o

(gcc version 11.2.0)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/r600_dpm.c