linux-stable/drivers/net/ethernet/amd
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
..
xgbe ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
7990.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00
7990.h net: 7990: Fix use correct return type for ndo_start_xmit() 2020-05-06 14:26:14 -07:00
a2065.c net: amd: a2065: Use print_hex_dump_debug() helper 2020-01-12 16:20:26 -08:00
a2065.h
amd8111e.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
amd8111e.h net: amd: remove leading spaces before tabs 2021-05-19 12:17:30 -07:00
ariadne.c netdev: pass the stuck queue to the timeout handler 2019-12-12 21:38:57 -08:00
ariadne.h
atarilance.c ethernet: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
au1000_eth.c ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
au1000_eth.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 400 2019-06-05 17:37:13 +02:00
declance.c net: amd: remove leading spaces before tabs 2021-05-19 12:17:30 -07:00
hplance.c net: amd: correct some format issues 2021-03-31 14:34:09 -07:00
hplance.h
Kconfig of: net: move of_net under net/ 2021-10-07 13:39:51 +01:00
lance.c ethernet: isa: convert to module_init/module_exit 2021-08-03 13:05:26 +01:00
Makefile net: remove am79c961a driver 2020-10-30 21:57:03 +01:00
mvme147.c m68k: remove legacy probing 2021-08-03 13:05:25 +01:00
ni65.c net: ni65: Avoid typecast of pointer to u32 2021-09-09 11:21:19 +01:00
ni65.h
nmclan_cs.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
pcnet32.c ethernet: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
sun3lance.c m68k: remove legacy probing 2021-08-03 13:05:25 +01:00
sunlance.c mm: reorder includes after introduction of linux/pgtable.h 2020-06-09 09:39:13 -07:00