Skip to contentSkip to conversation

linux: fix pv driver build

PATCH New Jan Beulich 1 participant 1 message Mar 5, 2008 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

drivers/xen/netfront/accel.c +1 -1
Index: head-2008-02-26/drivers/xen/netfront/accel.c
===================================================================
@@ -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"
drivers/xen/netfront/netfront.c +0 -1
Index: head-2008-02-26/drivers/xen/netfront/netfront.c
===================================================================
@@ -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;