linux: fix pv driver build
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.
Signed-off-by Jan Beulich <[email protected]>
drivers/xen/netfront/accel.c +1 -1
@@ -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
@@ -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;