Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 821797e0 authored by Colin Ian King's avatar Colin Ian King Committed by Greg Kroah-Hartman
Browse files

staging: xgifb: make const array static to shink object code size



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

Before:
   text	   data	    bss	    dec	    hex	filename
  84949	  12336	      0	  97285	  17c05	drivers/staging/xgifb/vb_setmode.o

After:
   text	   data	    bss	    dec	    hex	filename
  84506	  12432	      0	  96938	  17aaa	drivers/staging/xgifb/vb_setmode.o

(gcc version 7.2.0 x86_64)

Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cbf83fb8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment