diff options
author | Alexander Lobakin <alobakin@pm.me> | 2021-03-14 14:11:41 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-15 00:48:02 +0300 |
commit | 59753ce8b196de60211a989c75ece8aeb0d9d57c (patch) | |
tree | ed1ee1f75512b693eeebb1ea732dbee5887202ff /include/linux/etherdevice.h | |
parent | 805a25f3a1bdf4aafd0af412ce1e47d0cb6c7628 (diff) | |
download | linux-59753ce8b196de60211a989c75ece8aeb0d9d57c.tar.xz |
ethernet: constify eth_get_headlen()'s data argument
It's used only for flow dissection, which now takes constant data
pointers.
Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/etherdevice.h')
-rw-r--r-- | include/linux/etherdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h index bcb2f81baafb..330345b1be54 100644 --- a/include/linux/etherdevice.h +++ b/include/linux/etherdevice.h @@ -29,7 +29,7 @@ struct device; int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr); unsigned char *arch_get_platform_mac_address(void); int nvmem_get_mac_address(struct device *dev, void *addrbuf); -u32 eth_get_headlen(const struct net_device *dev, void *data, unsigned int len); +u32 eth_get_headlen(const struct net_device *dev, const void *data, u32 len); __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev); extern const struct header_ops eth_header_ops; |