]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau/bios/dp: make array vsoff static, shrinks object size
authorColin Ian King <colin.king@canonical.com>
Tue, 4 Sep 2018 15:23:33 +0000 (16:23 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Feb 2019 22:59:58 +0000 (08:59 +1000)
commit47187a363e4bbba566baaae7e2a5da7b8fd872b6
tree253c7bbdb3ccbb549bc42443c0c8ed72833c9efe
parent675b81f8bf5ae3232e35ea6369942fff2757af3e
drm/nouveau/bios/dp: make array vsoff static, shrinks object size

Don't populate the array vsoff on the stack but instead make it
static. Makes the object code smaller by 67 bytes:

Before:
   text    data     bss     dec     hex filename
   5753     112       0    5865    16e9 .../nouveau/nvkm/subdev/bios/dp.o

After:
   text    data     bss     dec     hex filename
   5622     176       0    5798    16a6 .../nouveau/nvkm/subdev/bios/dp.o

(gcc version 8.2.0 x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/bios/dp.c