|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [LINUX] drivers: Add missing includes
Hi Keir:
[LINUX] drivers: Add missing includes
This patch adds missing includes that currently work through indirect
inclusions. This cannot be relied on and indeed does break on older
kernels (2.4 with PV-on-HVM).
Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
diff -r 840b9df48b6a drivers/xen/core/reboot.c
--- a/drivers/xen/core/reboot.c Tue Aug 07 09:37:41 2007 +0100
+++ b/drivers/xen/core/reboot.c Mon Aug 13 16:46:26 2007 +0800
@@ -7,7 +7,10 @@
#include <linux/sysrq.h>
#include <asm/hypervisor.h>
#include <xen/xenbus.h>
+#include <linux/kmod.h>
#include <linux/kthread.h>
+#include <linux/slab.h>
+#include <linux/workqueue.h>
#ifdef HAVE_XEN_PLATFORM_COMPAT_H
#include <xen/platform-compat.h>
diff -r 840b9df48b6a drivers/xen/xenbus/xenbus_client.c
--- a/drivers/xen/xenbus/xenbus_client.c Tue Aug 07 09:37:41 2007 +0100
+++ b/drivers/xen/xenbus/xenbus_client.c Mon Aug 13 16:46:26 2007 +0800
@@ -30,6 +30,7 @@
* IN THE SOFTWARE.
*/
+#include <linux/slab.h>
#include <xen/evtchn.h>
#include <xen/gnttab.h>
#include <xen/xenbus.h>
diff -r 840b9df48b6a drivers/xen/xenbus/xenbus_comms.c
--- a/drivers/xen/xenbus/xenbus_comms.c Tue Aug 07 09:37:41 2007 +0100
+++ b/drivers/xen/xenbus/xenbus_comms.c Mon Aug 13 16:46:26 2007 +0800
@@ -35,6 +35,7 @@
#include <linux/sched.h>
#include <linux/err.h>
#include <linux/ptrace.h>
+#include <linux/workqueue.h>
#include <xen/evtchn.h>
#include <xen/xenbus.h>
diff -r 840b9df48b6a drivers/xen/xenbus/xenbus_probe.c
--- a/drivers/xen/xenbus/xenbus_probe.c Tue Aug 07 09:37:41 2007 +0100
+++ b/drivers/xen/xenbus/xenbus_probe.c Mon Aug 13 16:46:26 2007 +0800
@@ -43,6 +43,7 @@
#include <linux/mm.h>
#include <linux/notifier.h>
#include <linux/mutex.h>
+#include <linux/module.h>
#include <asm/io.h>
#include <asm/page.h>
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [LINUX] drivers: Add missing includes,
Herbert Xu <=
|
|
|
|
|