Skip to content
Commit e728789c authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by David S. Miller
Browse files

net: Extra '_get' in declaration of arch_get_platform_mac_address

In commit c7f5d105

 ("net: Add eth_platform_get_mac_address() helper."),
two declarations were added:

  int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr);
  unsigned char *arch_get_platform_get_mac_address(void);

An extra '_get' was introduced in arch_get_platform_get_mac_address, remove
it. Fix compile warning using W=1:

  CC      net/ethernet/eth.o
net/ethernet/eth.c:523:24: warning: no previous prototype for ‘arch_get_platform_mac_address’ [-Wmissing-prototypes]
 unsigned char * __weak arch_get_platform_mac_address(void)
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  AR      net/ethernet/built-in.o

Signed-off-by: default avatarMathieu Malaterre <malat@debian.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ec95dffa
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment