mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Don't build unused suspend/resume functions not enabled
@ 2014-04-11  8:14 Daniel J Blueman
  2014-04-11 20:50 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Daniel J Blueman @ 2014-04-11  8:14 UTC (permalink / raw)
  To: Michael Chan, netdev; +Cc: linux-kernel, Daniel J Blueman

When CONFIG_PM_SLEEP isn't enabled, bnx2_suspend/resume are unused; don't
build them when they aren't used.

Signed-off-by: Daniel J Blueman <daniel@quora.org>
---
 drivers/net/ethernet/broadcom/bnx2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c
index b14c606..617bfe6 100644
--- a/drivers/net/ethernet/broadcom/bnx2.c
+++ b/drivers/net/ethernet/broadcom/bnx2.c
@@ -8578,6 +8578,7 @@ bnx2_remove_one(struct pci_dev *pdev)
 	pci_disable_device(pdev);
 }
 
+#ifdef CONFIG_PM_SLEEP
 static int
 bnx2_suspend(struct device *device)
 {
@@ -8616,7 +8617,6 @@ bnx2_resume(struct device *device)
 	return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
 static SIMPLE_DEV_PM_OPS(bnx2_pm_ops, bnx2_suspend, bnx2_resume);
 #define BNX2_PM_OPS (&bnx2_pm_ops)
 
-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Don't build unused suspend/resume functions not enabled
  2014-04-11  8:14 [PATCH] Don't build unused suspend/resume functions not enabled Daniel J Blueman
@ 2014-04-11 20:50 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2014-04-11 20:50 UTC (permalink / raw)
  To: daniel; +Cc: mchan, netdev, linux-kernel

From: Daniel J Blueman <daniel@quora.org>
Date: Fri, 11 Apr 2014 16:14:26 +0800

> When CONFIG_PM_SLEEP isn't enabled, bnx2_suspend/resume are unused; don't
> build them when they aren't used.
> 
> Signed-off-by: Daniel J Blueman <daniel@quora.org>

Applied, thank you.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-11 20:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-11  8:14 [PATCH] Don't build unused suspend/resume functions not enabled Daniel J Blueman
2014-04-11 20:50 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®