* [PATCH] net: Extra '_get' in declaration of arch_get_platform_mac_address
@ 2018-02-07 19:35 Mathieu Malaterre
2018-02-08 20:14 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Mathieu Malaterre @ 2018-02-07 19:35 UTC (permalink / raw)
To: David S . Miller
Cc: trivial, Mathieu Malaterre, Andrew Lunn, Egil Hjelmeland,
Vivien Didelot, netdev, linux-kernel
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 <malat@debian.org>
---
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;
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: Extra '_get' in declaration of arch_get_platform_mac_address
2018-02-07 19:35 [PATCH] net: Extra '_get' in declaration of arch_get_platform_mac_address Mathieu Malaterre
@ 2018-02-08 20:14 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-02-08 20:14 UTC (permalink / raw)
To: malat; +Cc: trivial, andrew, privat, vivien.didelot, netdev, linux-kernel
From: Mathieu Malaterre <malat@debian.org>
Date: Wed, 7 Feb 2018 20:35:00 +0100
> 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 <malat@debian.org>
I'm very surprised this warning didn't get triggered before.
That's really weird!
Applied, thank you.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-02-08 20:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-07 19:35 [PATCH] net: Extra '_get' in declaration of arch_get_platform_mac_address Mathieu Malaterre
2018-02-08 20:14 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).