On Fri, Aug 25, 2017 at 05:45:05PM +0100, Colin King wrote:
> From: Colin Ian King <colin.k...@canonical.com>
> 
> Don't populate array cmd_getticks on the stack, instead make it static
> const.  Makes the object code smaller by over 160 bytes:
> 
> Before:
>    text          data     bss     dec     hex filename
>   18813          3152     128   22093    564d drivers/char/tpm/tpm_tis_core.o
> 
> After:
>    text          data     bss     dec     hex filename
>   18554          3248     128   21930    55aa drivers/char/tpm/tpm_tis_core.o
> 
> Signed-off-by: Colin Ian King <colin.k...@canonical.com>

Reviewed-by: Jason Gunthorpe <jguntho...@obsidianresearch.com>

Jason

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
tpmdd-devel mailing list
tpmdd-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tpmdd-devel

Reply via email to