]> git.baikalelectronics.ru Git - kernel.git/commit
Merge patch series "can: export export slcan_ethtool_ops and remove setter functions"
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 27 Jul 2022 11:09:39 +0000 (13:09 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 27 Jul 2022 11:09:39 +0000 (13:09 +0200)
commit5b2a471c10a811c8df118238f095e0df8e56ad7d
tree8a7a335fbc871810cbcb322599f7d448eeee9330
parent500a3540d131570936f8d24e5fe41512d68ab78f
parent9d487c26f8deca4b724d5689213f4d8ed654b14b
Merge patch series "can: export export slcan_ethtool_ops and remove setter functions"

Vincent Mailhol <mailhol.vincent@wanadoo.fr> says:

====================

The c_can, flexcan and slcan use a setter function to populate
net_device::ethtool_ops. Using a setter here add one additional
function call and add some small bloat in the object file. Exporting
the structure allow to remove this setter.

The mcp251xfd uses a similar pattern except that it does some
additional initialization. As such, this driver is left untouched.

* Statistics *

For the slcan driver, this patch reduces the object file by 14 bytes
(details in the first patch). Although we did not conduct a benchmark
for the other drivers but we expect the exact same figures.

====================

Link: https://lore.kernel.org/all/20220727104939.279022-1-mailhol.vincent@wanadoo.fr
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>