updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vmware-patch / vsock-3.0.diff
blobbc25bb8e58ed8671c393fdc9063527c73172e959
1 diff -u -r vsock-only/linux/af_vsock.c vsock-only/linux/af_vsock.c
2 --- vsock-only/linux/af_vsock.c 2011-03-26 04:03:08.000000000 +0100
3 +++ vsock-only/linux/af_vsock.c 2011-04-02 13:33:39.000000000 +0200
4 @@ -102,7 +102,6 @@
5 #include <linux/miscdevice.h>
6 #include <linux/poll.h>
7 #include <linux/smp.h>
8 -#include <linux/smp_lock.h>
9 #include <asm/io.h>
10 #if defined(__x86_64__) && LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12)
11 # if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
12 diff -u -r vsock-only/linux/util.c vsock-only/linux/util.c
13 --- vsock-only/linux/util.c 2011-03-26 04:03:08.000000000 +0100
14 +++ vsock-only/linux/util.c 2011-04-02 13:35:45.000000000 +0200
15 @@ -34,7 +34,7 @@
16 struct list_head vsockBindTable[VSOCK_HASH_SIZE + 1];
17 struct list_head vsockConnectedTable[VSOCK_HASH_SIZE];
19 -spinlock_t vsockTableLock = SPIN_LOCK_UNLOCKED;
20 +DEFINE_SPINLOCK(vsockTableLock);
23 * snprintf() wasn't exported until 2.4.10: fall back on sprintf in those