Commit 91eefaab authored by Borislav Petkov's avatar Borislav Petkov Committed by David S. Miller

amd-xgbe: Fix unused suspend handlers build warning

Fix:

  drivers/net/ethernet/amd/xgbe/xgbe-main.c:835:12: warning: ‘xgbe_suspend’ defined
    but not used [-Wunused-function]
  drivers/net/ethernet/amd/xgbe/xgbe-main.c:855:12: warning: ‘xgbe_resume’ defined
    but not used [-Wunused-function]

I see it during randconfig builds here.
Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: netdev@vger.kernel.org
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4df21dfc
...@@ -829,7 +829,7 @@ static int xgbe_remove(struct platform_device *pdev) ...@@ -829,7 +829,7 @@ static int xgbe_remove(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_PM #ifdef CONFIG_PM_SLEEP
static int xgbe_suspend(struct device *dev) static int xgbe_suspend(struct device *dev)
{ {
struct net_device *netdev = dev_get_drvdata(dev); struct net_device *netdev = dev_get_drvdata(dev);
...@@ -874,7 +874,7 @@ static int xgbe_resume(struct device *dev) ...@@ -874,7 +874,7 @@ static int xgbe_resume(struct device *dev)
return ret; return ret;
} }
#endif /* CONFIG_PM */ #endif /* CONFIG_PM_SLEEP */
#ifdef CONFIG_ACPI #ifdef CONFIG_ACPI
static const struct acpi_device_id xgbe_acpi_match[] = { static const struct acpi_device_id xgbe_acpi_match[] = {
......
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