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

[Xen-changelog] [xen-unstable] Fix PV-on-HVM driver build.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1184252621 -3600
# Node ID 48c8244c47c7506f68b5fba02ca82bf3fbd35553
# Parent  b27add01a92941ee032d47347cf0ff8c3fee3bde
Fix PV-on-HVM driver build.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h |    9 
+++++++++
 unmodified_drivers/linux-2.6/netfront/Kbuild                      |    1 +
 2 files changed, 10 insertions(+)

diff -r b27add01a929 -r 48c8244c47c7 
unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h
--- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Thu Jul 
12 14:14:29 2007 +0100
+++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Thu Jul 
12 16:03:41 2007 +0100
@@ -107,4 +107,13 @@ extern char *kasprintf(gfp_t gfp, const 
 #define __supported_pte_mask ((maddr_t)0)
 #endif
 
+#if defined(_LINUX_NETDEVICE_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18)
+#define netif_tx_lock_bh(dev) (spin_lock_bh(&(dev)->xmit_lock))
+#define netif_tx_unlock_bh(dev) (spin_unlock_bh(&(dev)->xmit_lock))
 #endif
+
+#if defined(__LINUX_SEQLOCK_H) && !defined(DEFINE_SEQLOCK)
+#define DEFINE_SEQLOCK(x) seqlock_t x = SEQLOCK_UNLOCKED
+#endif
+
+#endif
diff -r b27add01a929 -r 48c8244c47c7 
unmodified_drivers/linux-2.6/netfront/Kbuild
--- a/unmodified_drivers/linux-2.6/netfront/Kbuild      Thu Jul 12 14:14:29 
2007 +0100
+++ b/unmodified_drivers/linux-2.6/netfront/Kbuild      Thu Jul 12 16:03:41 
2007 +0100
@@ -2,3 +2,4 @@ include $(M)/overrides.mk
 
 obj-m  = xen-vnif.o
 xen-vnif-objs  := netfront.o
+xen-vnif-objs  += accel.o

_______________________________________________
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®.