ia64/linux-2.6.18-xen.hg

changeset 469:2da185c11693

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@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Wed Mar 05 17:28:04 2008 +0000 (2008-03-05)
parents 3e732c70d5e9
children 5baef0e18e36
files drivers/xen/netfront/accel.c drivers/xen/netfront/netfront.c
line diff
     1.1 --- a/drivers/xen/netfront/accel.c	Wed Mar 05 17:27:36 2008 +0000
     1.2 +++ b/drivers/xen/netfront/accel.c	Wed Mar 05 17:28:04 2008 +0000
     1.3 @@ -32,7 +32,7 @@
     1.4  #include <linux/skbuff.h>
     1.5  #include <linux/list.h>
     1.6  #include <linux/mutex.h>
     1.7 -
     1.8 +#include <asm/hypervisor.h>
     1.9  #include <xen/xenbus.h>
    1.10  
    1.11  #include "netfront.h"
     2.1 --- a/drivers/xen/netfront/netfront.c	Wed Mar 05 17:27:36 2008 +0000
     2.2 +++ b/drivers/xen/netfront/netfront.c	Wed Mar 05 17:28:04 2008 +0000
     2.3 @@ -63,7 +63,6 @@
     2.4  #include <asm/uaccess.h>
     2.5  #include <xen/interface/grant_table.h>
     2.6  #include <xen/gnttab.h>
     2.7 -#include <xen/hypercall.h>
     2.8  
     2.9  struct netfront_cb {
    2.10  	struct page *page;