Re: [PATCH] HID: hid-lg: make array cbuf static const to shink object code size

From
Jiri Kosina <jikos@kernel.org>
Date
2017-09-06 08:59:09
Also in
kernel-janitors, lkml
Reply to
Colin King, 2017-08-25
On Fri, 25 Aug 2017, Colin King wrote:
From: Colin Ian King <redacted>

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

Before:
   text	   data	    bss	    dec	    hex	filename
  15096	   3504	    128	  18728	   4928	drivers/hid/hid-lg.o

After:
   text	   data	    bss	    dec	    hex	filename
  14884	   3600	    128	  18612	   48b4	drivers/hid/hid-lg.o

Signed-off-by: Colin Ian King <redacted>
Applied, thanks.

-- 
Jiri Kosina
SUSE Labs
Thread (2 messages) 2 messages, 2 authors, last reply 2017-09-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help