Messages in this thread | | | Subject | Re: [PATCH] can: isotp: make const array static, makes object smaller | From | Marc Kleine-Budde <> | Date | Tue, 20 Oct 2020 17:52:32 +0200 |
| |
On 10/20/20 5:42 PM, Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > 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@canonical.com>
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 |
[unhandled content-type:application/pgp-signature] | |