Commit a25aafaa authored by françois romieu's avatar françois romieu Committed by David S. Miller

amd-xgbe: fix unused variable compilation warning in phylib driver

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: default avatarFrancois Romieu <romieu@fr.zoreil.com>
Acked-by: default avatarTom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent df6d0f98
...@@ -1350,7 +1350,7 @@ static void __exit amd_xgbe_phy_exit(void) ...@@ -1350,7 +1350,7 @@ static void __exit amd_xgbe_phy_exit(void)
module_init(amd_xgbe_phy_init); module_init(amd_xgbe_phy_init);
module_exit(amd_xgbe_phy_exit); 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 }, { XGBE_PHY_ID, XGBE_PHY_MASK },
{ } { }
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment