mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ashutosh Naik <ashutosh_naik@adaptec.com>
To: tom.l.nguyen@intel.com, Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH] pcie: Fixes Several Warnings in drivers/pci/pcie/portdrv_pci.c
Date: Mon, 24 Oct 2005 19:28:53 +0530	[thread overview]
Message-ID: <1130162333.16820.92.camel@kir9060.adaptec.com> (raw)

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



                 reply	other threads:[~2005-10-24 13:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1130162333.16820.92.camel@kir9060.adaptec.com \
    --to=ashutosh_naik@adaptec.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tom.l.nguyen@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®