[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20180208.151429.32851294514008981.davem@davemloft.net>
Date: Thu, 08 Feb 2018 15:14:29 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: malat@...ian.org
Cc: trivial@...nel.org, andrew@...n.ch, privat@...l-hjelmeland.no,
vivien.didelot@...oirfairelinux.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] net: Extra '_get' in declaration of
arch_get_platform_mac_address
From: Mathieu Malaterre <malat@...ian.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@...ian.org>
I'm very surprised this warning didn't get triggered before.
That's really weird!
Applied, thank you.
Powered by blists - more mailing lists