[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] linux: fix pv driver build



When building with -Werror-implicit-function-declaration, the addition
of is_initial_xen_domain() checks in drivers/xen/netfront/accel.c
causes the build to fail.

Additionally, drivers/xen/netfront/netfront.c illegally (and
needlessly) includes xen/hypercall.h directly.

As usual, written and tested on 2.6.25-rc3 and made apply to the 2.6.18
tree without further testing.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: head-2008-02-26/drivers/xen/netfront/accel.c
===================================================================
--- head-2008-02-26.orig/drivers/xen/netfront/accel.c   2008-02-26 
18:00:45.000000000 +0100
+++ head-2008-02-26/drivers/xen/netfront/accel.c        2008-03-05 
16:29:35.000000000 +0100
@@ -32,7 +32,7 @@
 #include <linux/skbuff.h>
 #include <linux/list.h>
 #include <linux/mutex.h>
-
+#include <asm/hypervisor.h>
 #include <xen/xenbus.h>
 
 #include "netfront.h"
Index: head-2008-02-26/drivers/xen/netfront/netfront.c
===================================================================
--- head-2008-02-26.orig/drivers/xen/netfront/netfront.c        2008-03-05 
16:27:37.000000000 +0100
+++ head-2008-02-26/drivers/xen/netfront/netfront.c     2008-03-05 
16:29:27.000000000 +0100
@@ -63,7 +63,6 @@
 #include <asm/uaccess.h>
 #include <xen/interface/grant_table.h>
 #include <xen/gnttab.h>
-#include <xen/hypercall.h>
 
 struct netfront_cb {
        struct page *page;




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.