WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [LINUX] drivers: Add missing includes

To: Keir Fraser <keir@xxxxxxxxxxxxx>, Xen Development Mailing List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [LINUX] drivers: Add missing includes
From: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 13 Aug 2007 17:07:05 +0800
Delivery-date: Mon, 13 Aug 2007 02:07:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
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 <=