Arvind M | 8e87d85 | 2018-01-29 00:04:29 -0800 | [diff] [blame] | 1 | From 4e6135e436d878f939ace42be08fbebc006a862b Mon Sep 17 00:00:00 2001 |
Allen Martin | 685e0f8 | 2016-07-26 19:34:29 -0700 | [diff] [blame] | 2 | From: Thomas Gleixner <tglx@linutronix.de> |
| 3 | Date: Wed, 29 Jun 2011 20:06:39 +0200 |
Arvind M | 10268e7 | 2017-12-04 22:18:06 -0800 | [diff] [blame] | 4 | Subject: [PATCH 122/366] rtmutex: Avoid include hell |
Allen Martin | 685e0f8 | 2016-07-26 19:34:29 -0700 | [diff] [blame] | 5 | |
| 6 | Include only the required raw types. This avoids pulling in the |
| 7 | complete spinlock header which in turn requires rtmutex.h at some point. |
| 8 | |
| 9 | Signed-off-by: Thomas Gleixner <tglx@linutronix.de> |
Allen Martin | 685e0f8 | 2016-07-26 19:34:29 -0700 | [diff] [blame] | 10 | --- |
| 11 | include/linux/rtmutex.h | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h |
Ishan Mittal | b799826 | 2017-01-17 16:11:50 +0530 | [diff] [blame] | 15 | index 51dc12e..2ed41c4 100644 |
Allen Martin | 685e0f8 | 2016-07-26 19:34:29 -0700 | [diff] [blame] | 16 | --- a/include/linux/rtmutex.h |
| 17 | +++ b/include/linux/rtmutex.h |
| 18 | @@ -14,7 +14,7 @@ |
| 19 | |
| 20 | #include <linux/linkage.h> |
| 21 | #include <linux/rbtree.h> |
| 22 | -#include <linux/spinlock_types.h> |
| 23 | +#include <linux/spinlock_types_raw.h> |
| 24 | |
| 25 | extern int max_lock_depth; /* for sysctl */ |
| 26 | |
| 27 | -- |
Arvind M | 10268e7 | 2017-12-04 22:18:06 -0800 | [diff] [blame] | 28 | 1.9.1 |
Allen Martin | 685e0f8 | 2016-07-26 19:34:29 -0700 | [diff] [blame] | 29 | |