[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20150831212641.FA5D579A@viggo.jf.intel.com>
Date: Mon, 31 Aug 2015 14:26:41 -0700
From: Dave Hansen <dave@...1.net>
To: dave@...1.net
Cc: dave.hansen@...ux.intel.com, jeffrey.t.kirsher@...el.com,
jesse.brandeburg@...el.com, shannon.nelson@...el.com,
carolyn.wyborny@...el.com, donald.c.skidmore@...el.com,
matthew.vick@...el.com, john.ronciak@...el.com,
mitch.a.williams@...el.com, intel-wired-lan@...ts.osuosl.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] e1000: fix e1000e_disable_aspm_locked() warning
From: Dave Hansen <dave.hansen@...ux.intel.com>
I have a .config with CONFIG_PM disabled. I get the following whenever
compiling the e1000 driver:
...net/ethernet/intel/e1000e/netdev.c:6450:13: warning: 'e1000e_disable_aspm_locked' defined but not used [-Wunused-function]
static void e1000e_disable_aspm_locked(struct pci_dev *pdev, u16 state)
Looks like we just need to move e1000e_disable_aspm_locked() to
be underneath the CONFIG_PM #ifdef.
Signed-off-by: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: Jeff Kirsher <jeffrey.t.kirsher@...el.com> (supporter:INTEL ETHERNET DRIVERS)
Cc: Jesse Brandeburg <jesse.brandeburg@...el.com> (reviewer)
Cc: Shannon Nelson <shannon.nelson@...el.com> (reviewer)
Cc: Carolyn Wyborny <carolyn.wyborny@...el.com> (reviewer)
Cc: Don Skidmore <donald.c.skidmore@...el.com> (reviewer)
Cc: Matthew Vick <matthew.vick@...el.com> (reviewer)
Cc: John Ronciak <john.ronciak@...el.com> (reviewer)
Cc: Mitch Williams <mitch.a.williams@...el.com> (reviewer)
Cc: intel-wired-lan@...ts.osuosl.org (open list:INTEL ETHERNET DRIVERS)
Cc: netdev@...r.kernel.org (open list:NETWORKING DRIVERS)
Cc: linux-kernel@...r.kernel.org (open list)
---
b/drivers/net/ethernet/intel/e1000e/netdev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/net/ethernet/intel/e1000e/netdev.c~fix-e1000-warning drivers/net/ethernet/intel/e1000e/netdev.c
--- a/drivers/net/ethernet/intel/e1000e/netdev.c~fix-e1000-warning 2015-08-31 14:19:11.520115321 -0700
+++ b/drivers/net/ethernet/intel/e1000e/netdev.c 2015-08-31 14:19:11.525115549 -0700
@@ -6439,6 +6439,7 @@ static void e1000e_disable_aspm(struct p
__e1000e_disable_aspm(pdev, state, 0);
}
+#ifdef CONFIG_PM
/**
* e1000e_disable_aspm_locked Disable ASPM states.
* @pdev: pointer to PCI device struct
@@ -6452,7 +6453,6 @@ static void e1000e_disable_aspm_locked(s
__e1000e_disable_aspm(pdev, state, 1);
}
-#ifdef CONFIG_PM
static int __e1000_resume(struct pci_dev *pdev)
{
struct net_device *netdev = pci_get_drvdata(pdev);
_
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists