]> git.baikalelectronics.ru Git - kernel.git/commit
locking/lockdep: Reduce header dependencies in <linux/debug_locks.h>
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Sun, 15 Aug 2021 21:28:17 +0000 (23:28 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 17 Aug 2021 15:29:10 +0000 (17:29 +0200)
commit053d6f33c2ae82f9c088a203a260c8a76513714c
treefc22dcc1a79d4707881bfcefbb394587b12006c4
parent85342dca44fb89b99536ef6e7c8c1dcf517c7cc0
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 <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20210815211303.484161136@linutronix.de
include/linux/debug_locks.h