From: Keir Fraser Subject: Re: [PATCH] conditionalize PCI reassign code Date: Fri, 17 Oct 2008 08:34:24 +0100 Message-ID: References: <48F83E68.7060303@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <48F83E68.7060303@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Zhao, Yu" , Jan Beulich Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 17/10/08 08:27, "Zhao, Yu" wrote: >> As you observed the build error - why don't you provide at least the >> error the compiler generated? That might make it possible to provide a >> fix quickly. > > +#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, the automated tests only build the -xen config. -- Keir