Re: [PATCH][next] HID: asus: make array 'buf' static const, shrinks object size

2018-02-16 Thread Jiri Kosina
On Sat, 6 Jan 2018, Colin King wrote: > From: Colin Ian King > > Don't populate the const read-only array 'buf' on the stack but instead > make it stati. Makes the object code smaller by 26 bytes: > > Before: >text data bss dec hex filename >

Re: [PATCH][next] HID: asus: make array 'buf' static const, shrinks object size

2018-02-16 Thread Jiri Kosina
On Sat, 6 Jan 2018, Colin King wrote: > From: Colin Ian King > > Don't populate the const read-only array 'buf' on the stack but instead > make it stati. Makes the object code smaller by 26 bytes: > > Before: >text data bss dec hex filename > 14378 2384

[PATCH][next] HID: asus: make array 'buf' static const, shrinks object size

2018-01-06 Thread Colin King
From: Colin Ian King Don't populate the const read-only array 'buf' on the stack but instead make it stati. Makes the object code smaller by 26 bytes: Before: textdata bss dec hex filename 143782384 64 1682641ba

[PATCH][next] HID: asus: make array 'buf' static const, shrinks object size

2018-01-06 Thread Colin King
From: Colin Ian King Don't populate the const read-only array 'buf' on the stack but instead make it stati. Makes the object code smaller by 26 bytes: Before: textdata bss dec hex filename 143782384 64 1682641ba linux/drivers/hid/hid-asus.o After: text