From: Yi CDL Yang <yyangcdl@cn.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@osdl.org
Subject: [PATCH 2.6.19-rc2]: Fix protdrv_pci.c compile error
Date: Tue, 17 Oct 2006 18:39:06 +0800 [thread overview]
Message-ID: <4534B2CA.1000108@cn.ibm.com> (raw)
When CONFIG_PM isn't set, the compiler will report the following error:
drivers/built-in.o: In function `.pcie_portdrv_slot_reset':
portdrv_pci.c:(.text+0xa80c): undefined reference to `.pcie_portdrv_restore_config'
make: *** [.tmp_vmlinux1] Error 1
The problem is that pcie_portdrv_restore_config isn't defiend when PM is disabled.
This patch fixes this problem, please consider to apply, thanks.
Signed-off by Yi Yang <yyangcdl@cn.ibm.com>
--- a/drivers/pci/pcie/portdrv_pci.c 2006-10-13 12:25:04.000000000 -0400
+++ b/drivers/pci/pcie/portdrv_pci.c 2006-10-16 18:49:43.000000000 -0400
@@ -37,7 +37,6 @@ static int pcie_portdrv_save_config(stru
return pci_save_state(dev);
}
-#ifdef CONFIG_PM
static int pcie_portdrv_restore_config(struct pci_dev *dev)
{
int retval;
@@ -50,6 +49,7 @@ static int pcie_portdrv_restore_config(s
return 0;
}
+#ifdef CONFIG_PM
static int pcie_portdrv_suspend(struct pci_dev *dev, pm_message_t state)
{
int ret = pcie_port_device_suspend(dev, state);
reply other threads:[~2006-10-17 10:38 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=4534B2CA.1000108@cn.ibm.com \
--to=yyangcdl@cn.ibm.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.