linux/drivers/net/usb
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
..
aqc111.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
aqc111.h
asix_common.c net: usb: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
asix_devices.c net: usb: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
asix.h net: usb: asix: ax88772: move embedded PHY detection as early as possible 2021-08-23 12:39:41 +01:00
ax88172a.c net: usb: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
ax88179_178a.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
catc.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
cdc_eem.c net: cdc_eem: fix tx fixup skb leak 2021-06-17 11:30:25 -07:00
cdc_ether.c net: usb: Fix spelling mistakes 2021-06-01 17:05:05 -07:00
cdc_mbim.c net: usb: cdc_mbim: avoid altsetting toggling for Telit LN920 2021-09-02 13:27:11 +01:00
cdc_ncm.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-06-18 19:47:02 -07:00
cdc_subset.c
cdc-phonet.c net: remove single-byte netdev->dev_addr writes 2021-10-13 10:03:59 -07:00
ch9200.c
cx82310_eth.c cx82310_eth: fix error return code in cx82310_bind() 2020-11-16 15:23:44 -08:00
dm9601.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
gl620a.c
hso.c net: hso: fix muxed tty registration 2021-09-17 11:19:58 +01:00
huawei_cdc_ncm.c usb: class: cdc-wdm: WWAN framework integration 2021-05-11 16:17:56 -07:00
int51x1.c net: usb: Fix spelling mistakes 2021-06-01 17:05:05 -07:00
ipheth.c net: usb: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
kalmia.c net: usb: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
kaweth.c net: usb: kaweth: Remove last user of kaweth_control() 2020-09-29 14:02:54 -07:00
Kconfig net: usb: asix: ax88772: add generic selftest support 2021-06-07 13:23:02 -07:00
lan78xx.c net: usb: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
lan78xx.h
lg-vl600.c net: usb: Fix spelling mistakes 2021-06-01 17:05:05 -07:00
Makefile r8153_ecm: avoid to be prior to r8152 driver 2020-11-19 08:23:46 -08:00
mcs7830.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
net1080.c net: usb: net1080: Remove in_interrupt() comment 2020-09-29 14:02:54 -07:00
pegasus.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-08-26 17:57:57 -07:00
pegasus.h
plusb.c
qmi_wwan.c net: usb: qmi_wwan: add Telit 0x1060 composition 2021-09-03 13:40:18 +01:00
r8152.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2021-10-07 15:24:06 -07:00
r8153_ecm.c r8153_ecm: Add Lenovo Powered USB-C Hub as a fallback of r8152 2021-01-12 20:00:51 -08:00
rndis_host.c net: usb: use eth_hw_addr_set() instead of ether_addr_copy() 2021-10-02 14:18:25 +01:00
rtl8150.c net: usb: use eth_hw_addr_set() for dev->addr_len cases 2021-10-05 13:16:48 +01:00
sierra_net.c usbnet: add _mii suffix to usbnet_set/get_link_ksettings 2021-04-06 16:22:36 -07:00
smsc75xx.c ethernet: use platform_get_ethdev_address() 2021-10-08 14:54:34 +01:00
smsc75xx.h
smsc95xx.c ethernet: use platform_get_ethdev_address() 2021-10-08 14:54:34 +01:00
smsc95xx.h
sr9700.c ethernet: constify references to netdev->dev_addr in drivers 2021-10-14 09:22:11 -07:00
sr9700.h
sr9800.c net: usb: use eth_hw_addr_set() 2021-10-02 14:18:25 +01:00
sr9800.h
usbnet.c drivers/net/usb: Remove all strcpy() uses 2021-08-03 11:48:28 +01:00
zaurus.c