Re: [PATCH] Bluetooth: bpa10x: make array 'req' static, shrinks object size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Colin,

> Don't populate the const read-only array 'req' on the stack but instead
> make it static. Makes the object code smaller by over 40 bytes:
> 
> Before:
>   text	   data	    bss	    dec	    hex	filename
>   8497	   3408	    128	  12033	   2f01	linux/drivers/bluetooth/bpa10x.o
> 
> After:
>   text	   data	    bss	    dec	    hex	filename
>   8366	   3496	    128	  11990	   2ed6	linux/drivers/bluetooth/bpa10x.o
> 
> (gcc version 7.2.0 x86_64)
> 
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> ---
> drivers/bluetooth/bpa10x.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux