Re: [PATCH] usb: storage: make const arrays static, reduces object code size

2017-09-12 Thread Alan Stern
On Tue, 12 Sep 2017, Colin King wrote: > From: Colin Ian King > > Don't populate const arrays on the stack, instead make them > static. Makes the object code smaller by over 1070 bytes: > > Before: >text data bss dec hex filename >3505

[PATCH] usb: storage: make const arrays static, reduces object code size

2017-09-12 Thread Colin King
From: Colin Ian King Don't populate const arrays on the stack, instead make them static. Makes the object code smaller by over 1070 bytes: Before: textdata bss dec hex filename 3505 880 043851121 drivers/usb/storage/option_ms.o