diff options
| author | 2021-03-14 11:11:41 +0000 | |
|---|---|---|
| committer | 2021-03-14 14:48:02 -0700 | |
| commit | 59753ce8b196de60211a989c75ece8aeb0d9d57c (patch) | |
| tree | ed1ee1f75512b693eeebb1ea732dbee5887202ff /include/linux/etherdevice.h | |
| parent | linux/etherdevice.h: misc trailing whitespace cleanup (diff) | |
| download | linux-dev-59753ce8b196de60211a989c75ece8aeb0d9d57c.tar.xz linux-dev-59753ce8b196de60211a989c75ece8aeb0d9d57c.zip | |
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; |
