From: Samuel Thibault Date: Fri, 30 Nov 2012 09:31:58 +0000 (+0000) Subject: [minios] Fix test application link when pcifront is not enabled X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=8531fff865fd9963b3c83124acbe6d95d17b8f8f;p=people%2Fliuw%2Flibxenctrl-split%2Fmini-os.git [minios] Fix test application link when pcifront is not enabled When pcifront is not enabled, the test application needs to disable the PCI test. Signed-off-by: Samuel Thibault Committed-by: Keir Fraser --- diff --git a/test.c b/test.c index 9039cb3..7baf1fb 100644 --- a/test.c +++ b/test.c @@ -413,6 +413,7 @@ static void kbdfront_thread(void *p) } } +#ifdef CONFIG_PCIFRONT static struct pcifront_dev *pci_dev; static void print_pcidev(unsigned int domain, unsigned int bus, unsigned int slot, unsigned int fun) @@ -436,6 +437,7 @@ static void pcifront_thread(void *p) printk("PCI devices:\n"); pcifront_scan(pci_dev, print_pcidev); } +#endif int app_main(start_info_t *si) { @@ -446,7 +448,9 @@ int app_main(start_info_t *si) create_thread("blkfront", blkfront_thread, si); create_thread("fbfront", fbfront_thread, si); create_thread("kbdfront", kbdfront_thread, si); +#ifdef CONFIG_PCIFRONT create_thread("pcifront", pcifront_thread, si); +#endif return 0; } @@ -464,6 +468,8 @@ void shutdown_frontends(void) if (kbd_dev) shutdown_kbdfront(kbd_dev); +#ifdef CONFIG_PCIFRONT if (pci_dev) shutdown_pcifront(pci_dev); +#endif }