linux-stable/drivers/net/ethernet/freescale/fman
Jakub Kicinski 766607570b ethernet: constify references to netdev->dev_addr in drivers
This big patch sprinkles const on local variables and
function arguments which may refer to netdev->dev_addr.

Commit 406f42fa0d ("net-next: When a bond have a massive amount
of VLANs...") introduced a rbtree for faster Ethernet address look
up. To maintain netdev->dev_addr in this tree we need to make all
the writes to it got through appropriate helpers.

Some of the changes here are not strictly required - const
is sometimes cast off but pointer is not used for writing.
It seems like it's still better to add the const in case
the code changes later or relevant -W flags get enabled
for the build.

No functional changes.

Link: https://lore.kernel.org/r/20211014142432.449314-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2021-10-14 09:22:11 -07:00
..
fman.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
fman.h fsl/fman: detect FMan erratum A050385 2020-03-06 21:55:32 -08:00
fman_dtsec.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
fman_dtsec.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
fman_keygen.c fsl/fman: include IPSEC SPI in the Keygen extraction 2019-05-28 11:21:03 -07:00
fman_keygen.h
fman_mac.h fsl/fman: fix eth hash table allocation 2020-08-03 16:20:15 -07:00
fman_memac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
fman_memac.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
fman_muram.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
fman_muram.h
fman_port.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
fman_port.h fsl/fman: add API to get the device behind a fman port 2019-10-24 15:21:58 -07:00
fman_sp.c
fman_sp.h
fman_tgec.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
fman_tgec.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
Kconfig ethernet: select CONFIG_CRC32 as needed 2020-12-04 14:42:21 -08:00
mac.c fsl/fman: Add fibre support 2021-07-20 07:16:45 -07:00
mac.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
Makefile