From: Andi Kleen <ak@suse.de>
To: torvalds@osdl.org, linux-kernel@vger.kernel.org, gregkh@suse.de
Subject: [PATCH] Fix 2.6.13rc2 compilation without CONFIG_HOTPLUG
Date: Wed, 6 Jul 2005 13:23:54 +0200 [thread overview]
Message-ID: <20050706112354.GE21330@wotan.suse.de> (raw)
Otherwise PCI won't compile.
Signed-off-by: Andi Kleen <ak@suse.de>
Index: linux/drivers/pci/pci-driver.c
===================================================================
--- linux.orig/drivers/pci/pci-driver.c
+++ linux/drivers/pci/pci-driver.c
@@ -145,12 +145,15 @@ const struct pci_device_id *pci_match_de
struct pci_dev *dev)
{
const struct pci_device_id *id;
+#ifdef CONFIG_HOTPLUG /* A kingdom for C99 */
struct pci_dynid *dynid;
+#endif
id = pci_match_id(drv->id_table, dev);
if (id)
return id;
+#ifdef CONFIG_HOTPLUG
/* static ids didn't match, lets look at the dynamic ones */
spin_lock(&drv->dynids.lock);
list_for_each_entry(dynid, &drv->dynids.list, node) {
@@ -160,6 +163,7 @@ const struct pci_device_id *pci_match_de
}
}
spin_unlock(&drv->dynids.lock);
+#endif
return NULL;
}
next reply other threads:[~2005-07-06 15:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-06 11:23 Andi Kleen [this message]
2005-07-06 16:12 ` Greg KH
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=20050706112354.GE21330@wotan.suse.de \
--to=ak@suse.de \
--cc=gregkh@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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 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®