Re: [PATCH] can: isotp: make const array static, makes object smaller

From: Marc Kleine-Budde
Date: Tue Oct 20 2020 - 11:52:49 EST


On 10/20/20 5:42 PM, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Don't populate the const array plen on the stack but instead it
> static. Makes the object code smaller by 926 bytes.
>
> Before:
> text data bss dec hex filename
> 26531 1943 64 28538 6f7a net/can/isotp.o
>
> After:
> text data bss dec hex filename
> 25509 2039 64 27612 6bdc net/can/isotp.o
>
> (gcc version 10.2.0)
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

applied to linux-can/testing.

Thanks,
Marc

--
Pengutronix e.K. | Marc Kleine-Budde |
Embedded Linux | https://www.pengutronix.de |
Vertretung West/Dortmund | Phone: +49-231-2826-924 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |

Attachment: signature.asc
Description: OpenPGP digital signature