]> www.infradead.org Git - users/hch/misc.git/commit
drm/nouveau/bios: make const arrays hwsq_signature and edid_sig static
authorColin Ian King <colin.king@canonical.com>
Thu, 2 Nov 2017 18:48:12 +0000 (18:48 +0000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 23:12:10 +0000 (09:12 +1000)
commit1a5c8164b335fb841fd9b41cd3d659de2f1c912b
treee4cd328ea56305da90de1eac8552002948f6b15e
parent690f43ab1b659a7e072a2a0b33ff5783828c168b
drm/nouveau/bios: make const arrays hwsq_signature and edid_sig static

Don't populate arrays hwsq_signature and edid_sig on the stack but
instead make them static. Makes the object code smaller by over 190
bytes:

Before:
   text    data     bss     dec     hex filename
  35676    3312      64   39052    988c nouveau_bios.o

After:
   text    data     bss     dec     hex filename
  35319    3472      64   38855    97c7 nouveau_bios.o

(gcc version 7.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/nouveau_bios.c