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

[Xen-changelog] [linux-2.6.18-xen] linux: fix pv driver build



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204738084 0
# Node ID 2da185c116933d7db2b7d7c875da3be52b035604
# Parent  3e732c70d5e96e0df8bf997cfc1287725e555021
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.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 drivers/xen/netfront/accel.c    |    2 +-
 drivers/xen/netfront/netfront.c |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff -r 3e732c70d5e9 -r 2da185c11693 drivers/xen/netfront/accel.c
--- a/drivers/xen/netfront/accel.c      Wed Mar 05 17:27:36 2008 +0000
+++ b/drivers/xen/netfront/accel.c      Wed Mar 05 17:28:04 2008 +0000
@@ -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"
diff -r 3e732c70d5e9 -r 2da185c11693 drivers/xen/netfront/netfront.c
--- a/drivers/xen/netfront/netfront.c   Wed Mar 05 17:27:36 2008 +0000
+++ b/drivers/xen/netfront/netfront.c   Wed Mar 05 17:28:04 2008 +0000
@@ -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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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