Thread (2 messages) flat view 2 messages, 2 authors, 2021-02-05

Re: [PATCH] HID: lg-g15: make a const array static, makes object smaller

From: Jiri Kosina <jikos@kernel.org>
Date: 2021-02-05 09:18:06
Also in: kernel-janitors, lkml

On Thu, 4 Feb 2021, Colin King wrote:
From: Colin Ian King <redacted>

Don't populate the const array led_names on the stack but instead make
it static. Makes the object code smaller by 79 bytes:

Before:
   text	   data	    bss	    dec	    hex	filename
  19686	   7952	    256	  27894	   6cf6	drivers/hid/hid-lg-g15.o

After:
   text	   data	    bss	    dec	    hex	filename
  19543	   8016	    256	  27815	   6ca7	drivers/hid/hid-lg-g15.o

(gcc version 10.2.0)

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

-- 
Jiri Kosina
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help