Skip to content

Commit

Permalink
amd-xgbe: Fix unused suspend handlers build warning
Browse files Browse the repository at this point in the history
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: Borislav Petkov <bp@suse.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Borislav Petkov authored and David S. Miller committed Nov 28, 2016
1 parent 4df21df commit 91eefaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/amd/xgbe/xgbe-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ static int xgbe_remove(struct platform_device *pdev)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int xgbe_suspend(struct device *dev)
{
struct net_device *netdev = dev_get_drvdata(dev);
Expand Down Expand Up @@ -874,7 +874,7 @@ static int xgbe_resume(struct device *dev)

return ret;
}
#endif /* CONFIG_PM */
#endif /* CONFIG_PM_SLEEP */

#ifdef CONFIG_ACPI
static const struct acpi_device_id xgbe_acpi_match[] = {
Expand Down

0 comments on commit 91eefaa

Please sign in to comment.