* [PATCH net-next 1/1] amd-xgbe: fix unused variable compilation warning in phylib driver
@ 2014-06-07 9:07 Francois Romieu
2014-06-09 19:07 ` Tom Lendacky
2014-06-11 7:15 ` David Miller
0 siblings, 2 replies; 3+ messages in thread
From: Francois Romieu @ 2014-06-07 9:07 UTC (permalink / raw)
To: netdev; +Cc: Thomas Lendacky, David Miller
Fix following compilation warning:
[...]
CC drivers/net/phy/amd-xgbe-phy.o
drivers/net/phy/amd-xgbe-phy.c:1353:30: warning:
‘amd_xgbe_phy_ids’ defined but not used [-Wunused-variable]
static struct mdio_device_id amd_xgbe_phy_ids[] = {
^
Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
---
drivers/net/phy/amd-xgbe-phy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/phy/amd-xgbe-phy.c b/drivers/net/phy/amd-xgbe-phy.c
index d4b1c81..b57c224 100644
--- a/drivers/net/phy/amd-xgbe-phy.c
+++ b/drivers/net/phy/amd-xgbe-phy.c
@@ -1350,7 +1350,7 @@ static void __exit amd_xgbe_phy_exit(void)
module_init(amd_xgbe_phy_init);
module_exit(amd_xgbe_phy_exit);
-static struct mdio_device_id amd_xgbe_phy_ids[] = {
+static struct mdio_device_id __maybe_unused amd_xgbe_phy_ids[] = {
{ XGBE_PHY_ID, XGBE_PHY_MASK },
{ }
};
--
1.9.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH net-next 1/1] amd-xgbe: fix unused variable compilation warning in phylib driver
2014-06-07 9:07 [PATCH net-next 1/1] amd-xgbe: fix unused variable compilation warning in phylib driver Francois Romieu
@ 2014-06-09 19:07 ` Tom Lendacky
2014-06-11 7:15 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: Tom Lendacky @ 2014-06-09 19:07 UTC (permalink / raw)
To: Francois Romieu, netdev; +Cc: David Miller
On 06/07/2014 04:07 AM, Francois Romieu wrote:
> Fix following compilation warning:
> [...]
> CC drivers/net/phy/amd-xgbe-phy.o
> drivers/net/phy/amd-xgbe-phy.c:1353:30: warning:
> ‘amd_xgbe_phy_ids’ defined but not used [-Wunused-variable]
> static struct mdio_device_id amd_xgbe_phy_ids[] = {
> ^
> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
> ---
> drivers/net/phy/amd-xgbe-phy.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/phy/amd-xgbe-phy.c b/drivers/net/phy/amd-xgbe-phy.c
> index d4b1c81..b57c224 100644
> --- a/drivers/net/phy/amd-xgbe-phy.c
> +++ b/drivers/net/phy/amd-xgbe-phy.c
> @@ -1350,7 +1350,7 @@ static void __exit amd_xgbe_phy_exit(void)
> module_init(amd_xgbe_phy_init);
> module_exit(amd_xgbe_phy_exit);
>
> -static struct mdio_device_id amd_xgbe_phy_ids[] = {
> +static struct mdio_device_id __maybe_unused amd_xgbe_phy_ids[] = {
> { XGBE_PHY_ID, XGBE_PHY_MASK },
> { }
> };
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH net-next 1/1] amd-xgbe: fix unused variable compilation warning in phylib driver
2014-06-07 9:07 [PATCH net-next 1/1] amd-xgbe: fix unused variable compilation warning in phylib driver Francois Romieu
2014-06-09 19:07 ` Tom Lendacky
@ 2014-06-11 7:15 ` David Miller
1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2014-06-11 7:15 UTC (permalink / raw)
To: romieu; +Cc: netdev, Thomas.Lendacky
From: Francois Romieu <romieu@fr.zoreil.com>
Date: Sat, 7 Jun 2014 11:07:48 +0200
> Fix following compilation warning:
> [...]
> CC drivers/net/phy/amd-xgbe-phy.o
> drivers/net/phy/amd-xgbe-phy.c:1353:30: warning:
> ‘amd_xgbe_phy_ids’ defined but not used [-Wunused-variable]
> static struct mdio_device_id amd_xgbe_phy_ids[] = {
> ^
> Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Applied.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-06-11 7:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-07 9:07 [PATCH net-next 1/1] amd-xgbe: fix unused variable compilation warning in phylib driver Francois Romieu
2014-06-09 19:07 ` Tom Lendacky
2014-06-11 7:15 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.