aboutsummaryrefslogtreecommitdiffstats
path: root/features/rt/lockdep-Reduce-header-files-in-debug_locks.h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'features/rt/lockdep-Reduce-header-files-in-debug_locks.h.patch')
-rw-r--r--features/rt/lockdep-Reduce-header-files-in-debug_locks.h.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/features/rt/lockdep-Reduce-header-files-in-debug_locks.h.patch b/features/rt/lockdep-Reduce-header-files-in-debug_locks.h.patch
new file mode 100644
index 00000000..24d5c811
--- /dev/null
+++ b/features/rt/lockdep-Reduce-header-files-in-debug_locks.h.patch
@@ -0,0 +1,32 @@
+From b127ff5cf25163e47794c314b66398cef8fec54f Mon Sep 17 00:00:00 2001
+From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+Date: Fri, 14 Aug 2020 16:55:25 +0200
+Subject: [PATCH 070/191] lockdep: Reduce header files in debug_locks.h
+
+The inclusion of printk.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(-)
+
+diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h
+index 2915f56ad421..5a9e3e3769ce 100644
+--- a/include/linux/debug_locks.h
++++ b/include/linux/debug_locks.h
+@@ -3,8 +3,7 @@
+ #define __LINUX_DEBUG_LOCKING_H
+
+ #include <linux/atomic.h>
+-#include <linux/bug.h>
+-#include <linux/printk.h>
++#include <linux/cache.h>
+
+ struct task_struct;
+
+--
+2.19.1
+