summaryrefslogtreecommitdiff
path: root/patches/0010-locking-rtmutex-Avoid-include-hell.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/0010-locking-rtmutex-Avoid-include-hell.patch')
-rw-r--r--patches/0010-locking-rtmutex-Avoid-include-hell.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/0010-locking-rtmutex-Avoid-include-hell.patch b/patches/0010-locking-rtmutex-Avoid-include-hell.patch
new file mode 100644
index 000000000000..9b305295caf8
--- /dev/null
+++ b/patches/0010-locking-rtmutex-Avoid-include-hell.patch
@@ -0,0 +1,23 @@
+From: Thomas Gleixner <tglx@linutronix.de>
+Date: Wed, 29 Jun 2011 20:06:39 +0200
+Subject: [PATCH 10/23] locking/rtmutex: Avoid include hell
+
+Include only the required raw types. This avoids pulling in the
+complete spinlock header which in turn requires rtmutex.h at some point.
+
+Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
+---
+ include/linux/rtmutex.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/include/linux/rtmutex.h
++++ b/include/linux/rtmutex.h
+@@ -15,7 +15,7 @@
+
+ #include <linux/linkage.h>
+ #include <linux/rbtree.h>
+-#include <linux/spinlock_types.h>
++#include <linux/spinlock_types_raw.h>
+
+ extern int max_lock_depth; /* for sysctl */
+