[PATCH] staging: rtl8188eu: make two arrays static const, makes object smaller

Larry Finger Larry.Finger at lwfinger.net
Fri Sep 6 17:50:39 UTC 2019


On 9/6/19 12:39 PM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Don't populate two arrays on the stack but instead make them
> static const. Makes the object code smaller by 49 bytes.
> 
> Before:
>     text	   data	    bss	    dec	    hex	filename
>    26821	   5616	      0	  32437	   7eb5	rtl8188eu/core/rtw_ieee80211.o
> 
> After:
>     text	   data	    bss	    dec	    hex	filename
>    26612	   5776	      0	  32388	   7e84	rtl8188eu/core/rtw_ieee80211.o
> 
> (gcc version 9.2.1, amd64)
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---

Acked-by: Larry Finger <Larry.Finger at lwfinger.net>

Thanks,

Larry


More information about the devel mailing list