projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
datapath: Fix build breakage on kernel 2.6.40
[openvswitch]
/
datapath
/
linux
/
compat
/
include
/
linux
/
mutex.h
diff --git
a/datapath/linux/compat/include/linux/mutex.h
b/datapath/linux/compat/include/linux/mutex.h
index 020a28097931f98e441222373ba017394022e007..38a3d0d5331347bd310f269659206b575899bd5f 100644
(file)
--- a/
datapath/linux/compat/include/linux/mutex.h
+++ b/
datapath/linux/compat/include/linux/mutex.h
@@
-5,7
+5,7
@@
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
#include <linux/version.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
-#include <
asm
/semaphore.h>
+#include <
linux
/semaphore.h>
struct mutex {
struct semaphore sema;
struct mutex {
struct semaphore sema;
@@
-15,7
+15,7
@@
struct mutex {
#define mutex_destroy(mutex) do { } while (0)
#define __MUTEX_INITIALIZER(name) \
#define mutex_destroy(mutex) do { } while (0)
#define __MUTEX_INITIALIZER(name) \
- __SEMAPHORE_INITIALIZER(name,1)
+ __SEMAPHORE_INITIALIZER(name,
1)
#define DEFINE_MUTEX(mutexname) \
struct mutex mutexname = { __MUTEX_INITIALIZER(mutexname.sema) }
#define DEFINE_MUTEX(mutexname) \
struct mutex mutexname = { __MUTEX_INITIALIZER(mutexname.sema) }