linux/drivers/net/ethernet/hisilicon/hns
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
..
hnae.c drivers/net/ethernet: clean up mis-targeted comments 2020-09-25 16:29:00 -07:00
hnae.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_ae_adapt.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_gmac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_gmac.h
hns_dsaf_mac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_mac.h ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_main.c net: hisilicon: hns: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
hns_dsaf_main.h net: hns: Prefer struct_size over open coded arithmetic 2021-10-12 11:23:11 +01:00
hns_dsaf_misc.c net: hisilicon: hns: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
hns_dsaf_misc.h
hns_dsaf_ppe.c net: hisilicon: hns: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
hns_dsaf_ppe.h
hns_dsaf_rcb.c net: hisilicon: hns: Fix wrong function name in comments 2021-05-17 14:12:39 -07:00
hns_dsaf_rcb.h
hns_dsaf_reg.h
hns_dsaf_xgmac.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
hns_dsaf_xgmac.h
hns_enet.c ethernet: use device_get_ethdev_address() 2021-10-07 13:39:51 +01:00
hns_enet.h
hns_ethtool.c ethtool: extend coalesce setting uAPI with CQE mode 2021-08-24 07:38:29 -07:00
Makefile