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)
commitd83d345338b10b560cf4532802be0973493075bb
tree253c7bbdb3ccbb549bc42443c0c8ed72833c9efe
parentb6c82854761f6fa0c1b1c28699bbac5c9840ec73
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