amd-xgbe: fix unused variable compilation warning in phylib driver
authorfrançois romieu <romieu@fr.zoreil.com>
Sat, 7 Jun 2014 09:07:48 +0000 (11:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jun 2014 07:13:16 +0000 (00:13 -0700)
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/amd-xgbe-phy.c

index d4b1c81610dd056a3f30f4cc69b91727f936369a..b57c22442867313f4d27afc895b0852f90739d23 100644 (file)
@@ -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 },
        { }
 };