video: fbdev: sis: make const array specialtv static, reduces object code size
authorColin Ian King <colin.king@canonical.com>
Thu, 12 Oct 2017 16:18:23 +0000 (18:18 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Thu, 12 Oct 2017 16:18:23 +0000 (18:18 +0200)
commitb90b3eca16b7ba6f42df35c029b674f1a00b0c69
tree7b34a974d32862e364d418f0b3765c0c86946e25
parent160d9a6b27b71499557d368fb514f8a9fcbde12e
video: fbdev: sis: make const array specialtv static, reduces object code size

Don't populate the const array specialtv on the stack, instead make it
static.  Makes the object code smaller by over 1100 bytes:

Before:
   text    data     bss     dec     hex filename
 179899    7504       0  187403   2dc0b drivers/video/fbdev/sis/init301.o

After:
   text    data     bss     dec     hex filename
 178720    7568       0  186288   2d7b0 drivers/video/fbdev/sis/init301.o

(gcc version 7.2.0, x86_64)

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Cc: Thomas Winischhofer <thomas@winischhofer.net>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/sis/init301.c