From: Samuel Thibault <samuel.thibault@ens-lyon.org>
To: xen-devel@lists.xen.org, Keir Fraser <keir@xen.org>
Subject: [minios] Fix test application link when pcifront is not enabled
Date: Wed, 28 Nov 2012 21:28:56 +0100 [thread overview]
Message-ID: <20121128202856.GA10257@type> (raw)
When pcifront is not enabled, the test application needs to disable the
PCI test.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
diff -r 321f8487379b extras/mini-os/test.c
--- a/extras/mini-os/test.c Thu Nov 15 10:25:29 2012 +0000
+++ b/extras/mini-os/test.c Wed Nov 28 21:27:22 2012 +0100
@@ -413,6 +413,7 @@
}
}
+#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 @@
printk("PCI devices:\n");
pcifront_scan(pci_dev, print_pcidev);
}
+#endif
int app_main(start_info_t *si)
{
@@ -446,7 +448,9 @@
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 @@
if (kbd_dev)
shutdown_kbdfront(kbd_dev);
+#ifdef CONFIG_PCIFRONT
if (pci_dev)
shutdown_pcifront(pci_dev);
+#endif
}
next reply other threads:[~2012-11-28 20:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-28 20:28 Samuel Thibault [this message]
2012-11-29 11:08 ` [minios] Fix test application link when pcifront is not enabled Ian Campbell
2012-11-29 11:13 ` Samuel Thibault
2013-01-07 21:47 ` [minios] Fix test application link when various fronts are " Samuel Thibault
2013-01-07 21:52 ` Samuel Thibault
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=20121128202856.GA10257@type \
--to=samuel.thibault@ens-lyon.org \
--cc=keir@xen.org \
--cc=xen-devel@lists.xen.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.