lkml.org 
[lkml]   [2005]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] pcie: Fixes Several Warnings in drivers/pci/pcie/portdrv_pci.c
From
Date
This Patch fixes the compilation warnings of the type "defined but not
used" when CONFIG_PM is enabled.

Signed-off-by: Ashutosh Naik <ashutosh_naik@adaptec.com>

--

diff -ruNp linux-2.6.14-rc5-pcie-patch/drivers/pci/pcie/portdrv_pci.c
linux-2.6.14-rc5/drivers/pci/pcie/portdrv_pci.c
--- linux-2.6.14-rc5-pcie-patch/drivers/pci/pcie/portdrv_pci.c
2005-10-24 14:05:03.000000000 +0530
+++ linux-2.6.14-rc5/drivers/pci/pcie/portdrv_pci.c 2005-10-23
13:06:54.000000000 +0530
@@ -29,7 +29,6 @@ MODULE_LICENSE("GPL");
/* global data */
static const char device_name[] = "pcieport-driver";

-#ifdef CONFIG_PM
static void pci_save_msi_state(struct pci_dev *dev)
{
struct pcie_port_device_ext *p_ext = pci_get_drvdata(dev);
@@ -105,7 +104,6 @@ static int pcie_portdrv_restore_config(s
pci_set_master(dev);
return 0;
}
-#endif

/*
* pcie_portdrv_probe - Probe PCI-Express port devices

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-10-24 16:01    [W:0.023 / U:0.232 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site