diff options
Diffstat (limited to 'patches/0011-lockdep-Reduce-header-files-in-debug_locks.h.patch')
-rw-r--r-- | patches/0011-lockdep-Reduce-header-files-in-debug_locks.h.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/0011-lockdep-Reduce-header-files-in-debug_locks.h.patch b/patches/0011-lockdep-Reduce-header-files-in-debug_locks.h.patch new file mode 100644 index 000000000000..fe0a6fad4153 --- /dev/null +++ b/patches/0011-lockdep-Reduce-header-files-in-debug_locks.h.patch @@ -0,0 +1,27 @@ +From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +Date: Fri, 14 Aug 2020 16:55:25 +0200 +Subject: [PATCH 11/23] lockdep: Reduce header files in debug_locks.h + +The inclusion of kernel.h leads to circular dependency if spinlock_t is +based on rt_mutex. + +Include only atomic.h (xchg()) and cache.h (__read_mostly). + +Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> +--- + include/linux/debug_locks.h | 3 +-- + 1 file changed, 1 insertion(+), 2 deletions(-) + +--- a/include/linux/debug_locks.h ++++ b/include/linux/debug_locks.h +@@ -2,9 +2,8 @@ + #ifndef __LINUX_DEBUG_LOCKING_H + #define __LINUX_DEBUG_LOCKING_H + +-#include <linux/kernel.h> + #include <linux/atomic.h> +-#include <linux/bug.h> ++#include <linux/cache.h> + + struct task_struct; + |