ia64/xen-unstable

changeset 15591:48c8244c47c7

Fix PV-on-HVM driver build.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Thu Jul 12 16:03:41 2007 +0100 (2007-07-12)
parents b27add01a929
children 23a171f65b15
files unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h unmodified_drivers/linux-2.6/netfront/Kbuild
line diff
     1.1 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Thu Jul 12 14:14:29 2007 +0100
     1.2 +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h	Thu Jul 12 16:03:41 2007 +0100
     1.3 @@ -107,4 +107,13 @@ extern char *kasprintf(gfp_t gfp, const 
     1.4  #define __supported_pte_mask ((maddr_t)0)
     1.5  #endif
     1.6  
     1.7 +#if defined(_LINUX_NETDEVICE_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
     1.8 +#define netif_tx_lock_bh(dev) (spin_lock_bh(&(dev)->xmit_lock))
     1.9 +#define netif_tx_unlock_bh(dev) (spin_unlock_bh(&(dev)->xmit_lock))
    1.10  #endif
    1.11 +
    1.12 +#if defined(__LINUX_SEQLOCK_H) && !defined(DEFINE_SEQLOCK)
    1.13 +#define DEFINE_SEQLOCK(x) seqlock_t x = SEQLOCK_UNLOCKED
    1.14 +#endif
    1.15 +
    1.16 +#endif
     2.1 --- a/unmodified_drivers/linux-2.6/netfront/Kbuild	Thu Jul 12 14:14:29 2007 +0100
     2.2 +++ b/unmodified_drivers/linux-2.6/netfront/Kbuild	Thu Jul 12 16:03:41 2007 +0100
     2.3 @@ -2,3 +2,4 @@ include $(M)/overrides.mk
     2.4  
     2.5  obj-m  = xen-vnif.o
     2.6  xen-vnif-objs	:= netfront.o
     2.7 +xen-vnif-objs	+= accel.o