From: "Jan Beulich" <jbeulich@novell.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>, Yu Zhao <yu.zhao@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] conditionalize PCI reassign code
Date: Fri, 17 Oct 2008 09:46:32 +0100 [thread overview]
Message-ID: <48F86D08.76E4.0078.0@novell.com> (raw)
In-Reply-To: <48F83E68.7060303@intel.com>
>>> "Zhao, Yu" <yu.zhao@intel.com> 17.10.08 09:27 >>>
>+#ifdef CONFIG_PCI_REASSIGN
> extern int reassign_resources;
> extern int is_reassigndev(struct pci_dev *dev);
> extern void pci_update_bridge(struct pci_dev *dev, int resno);
>+#else
>+#define reassign_resources 0
>+#define is_reassigndev(dev) 0
>+#endif
>
>When the CONFIG_PCI_REASSIGN is not set, e.g., a domU kernel, the
>following line fails to be compiled (drivers/pci/quirks.c):
>
>int reassign_resources = 0;
Ah, yes, I overlooked that, because when I merged these changes into
our kernel the main change to quirks.c needed to be done differently
(and then properly in reassigndev.c) anyway, and hence I at once
moved the misplaced (and as we agreed elsewhere unnecessary) option
into reassigndev.c. So the (untested) patch below should fix it until the
patch to eliminate the option will arrive from the original submitter.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -33,19 +33,6 @@
}
__setup("pci-mem-align", set_pci_mem_align);
-
-int reassign_resources = 0;
-
-static int __init set_reassign_resources(char *str)
-{
- /* resources reassign on */
- reassign_resources = 1;
- printk(KERN_DEBUG "PCI: resource reassign ON.\n");
-
- return 1;
-}
-__setup("reassign_resources", set_reassign_resources);
-
/* This quirk function enables us to force all memory resources which are
* assigned to PCI devices, to be page-aligned.
*/
--- a/drivers/pci/reassigndev.c
+++ b/drivers/pci/reassigndev.c
@@ -34,6 +34,18 @@ static int pbus_size_mem(struct pci_bus
}
__setup("reassigndev=", reassigndev_setup);
+int reassign_resources = 0;
+
+static int __init set_reassign_resources(char *str)
+{
+ /* resources reassign on */
+ reassign_resources = 1;
+ printk(KERN_DEBUG "PCI: resource reassign ON.\n");
+
+ return 1;
+}
+__setup("reassign_resources", set_reassign_resources);
+
int is_reassigndev(struct pci_dev *dev)
{
char dev_str[TOKEN_MAX+1];
prev parent reply other threads:[~2008-10-17 8:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-14 13:39 [PATCH] conditionalize PCI reassign code Jan Beulich
2008-10-15 7:56 ` Yuji Shimada
2008-10-15 15:14 ` Yu Zhao
2008-10-17 2:43 ` Zhao, Yu
2008-10-17 7:17 ` Jan Beulich
2008-10-17 7:22 ` Keir Fraser
2008-10-17 7:27 ` Jan Beulich
2008-10-17 7:27 ` Zhao, Yu
2008-10-17 7:34 ` Keir Fraser
2008-10-17 7:38 ` Zhao, Yu
2008-10-17 8:46 ` Jan Beulich [this message]
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=48F86D08.76E4.0078.0@novell.com \
--to=jbeulich@novell.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
--cc=yu.zhao@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 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.