Skip to content

Commit cbcebf5

Browse files
Sebastian Andrzej SiewiorIngo Molnar
authored andcommitted
locking/lockdep: Reduce header dependencies in <linux/debug_locks.h>
The inclusion of printk.h leads to a circular dependency if spinlock_t is based on rtmutexes on RT enabled kernels. Include only atomic.h (xchg()) and cache.h (__read_mostly) which is all what debug_locks.h requires. Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent a403abb commit cbcebf5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/linux/debug_locks.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
#define __LINUX_DEBUG_LOCKING_H
44

55
#include <linux/atomic.h>
6-
#include <linux/bug.h>
7-
#include <linux/printk.h>
6+
#include <linux/cache.h>
87

98
struct task_struct;
109

0 commit comments

Comments
 (0)