]> xenbits.xensource.com Git - xenclient/kernel.git/commitdiff
linux: fix pv driver build
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 17:28:04 +0000 (17:28 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 17:28:04 +0000 (17:28 +0000)
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.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
drivers/xen/netfront/accel.c
drivers/xen/netfront/netfront.c

index bf19df0ad67699ec95482dc755f2c6b650bc8efc..c1d7756c9e11f2e9f096da422bd65d29fbc33b98 100644 (file)
@@ -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 b501a8356d3041143dc7c725a26f1e9cecccfe5e..4d4b0c315fe5f9d0de65476c887bba8e3973499c 100644 (file)
@@ -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;