WSL2-Linux-Kernel/drivers/net/ethernet/mediatek
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
..
Kconfig net: ethernet: mtk_eth_soc: implement dynamic interrupt moderation 2021-04-23 13:31:58 -07:00
Makefile net: ethernet: mtk_eth_soc: add flow offloading support 2021-03-24 12:48:40 -07:00
mtk_eth_path.c net: mtk_eth: simplify the mediatek code return expression 2020-12-14 17:51:26 -08:00
mtk_eth_soc.c ethernet: use of_get_ethdev_address() 2021-10-07 13:39:51 +01:00
mtk_eth_soc.h net: ethernet: mtk_eth_soc: Fix packet statistics support for MT7628/88 2021-05-23 16:13:11 -07:00
mtk_ppe.c net: ethernet: mediatek: ppe: fix busy wait loop 2021-04-16 15:24:18 -07:00
mtk_ppe.h net: ethernet: mediatek: ppe: fix busy wait loop 2021-04-16 15:24:18 -07:00
mtk_ppe_debugfs.c net: ethernet: mtk_eth_soc: remove unused variable 'count' 2021-03-25 17:13:38 -07:00
mtk_ppe_offload.c net: ethernet: mtk_eth_soc: avoid creating duplicate offload entries 2021-09-23 13:14:19 +01:00
mtk_ppe_regs.h net: ethernet: mtk_eth_soc: add support for initializing the PPE 2021-03-24 12:48:39 -07:00
mtk_sgmii.c net: mediatek: remove unneeded semicolon 2019-10-28 16:36:24 -07:00
mtk_star_emac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00