net: Extra '_get' in declaration of arch_get_platform_mac_address

"Linux Kernel Mailing List" <[email protected]>
Newsgroups gmane.linux.kernel.commits.head
Message-ID <[email protected]>
Web:        https://git.kernel.org/torvalds/c/e728789c52afccc1275cba1dd812f03abe16ea3c
Commit:     e728789c52afccc1275cba1dd812f03abe16ea3c
Parent:     ec95dffa408f0c24c0b358f3723c6ba262190965
Refname:    refs/heads/master
Author:     Mathieu Malaterre <[email protected]>
AuthorDate: Wed Feb 7 20:35:00 2018 +0100
Committer:  David S. Miller <[email protected]>
CommitDate: Thu Feb 8 15:13:30 2018 -0500

    net: Extra '_get' in declaration of arch_get_platform_mac_address
    
    In commit c7f5d105495a ("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: Mathieu Malaterre <[email protected]>
    Signed-off-by: David S. Miller <[email protected]>
---
 include/linux/etherdevice.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/etherdevice.h b/include/linux/etherdevice.h
index 263dbcad22fc..79563840c295 100644
--- a/include/linux/etherdevice.h
+++ b/include/linux/etherdevice.h
@@ -31,7 +31,7 @@
 #ifdef __KERNEL__
 struct device;
 int eth_platform_get_mac_address(struct device *dev, u8 *mac_addr);
-unsigned char *arch_get_platform_get_mac_address(void);
+unsigned char *arch_get_platform_mac_address(void);
 u32 eth_get_headlen(void *data, unsigned int max_len);
 __be16 eth_type_trans(struct sk_buff *skb, struct net_device *dev);
 extern const struct header_ops eth_header_ops;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.