From: Sebastian Andrzej Siewior Date: Sun, 15 Aug 2021 21:28:17 +0000 (+0200) Subject: locking/lockdep: Reduce header dependencies in X-Git-Tag: accepted/tizen/unified/20230118.172025~6489^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cbcebf5bd3d056d7a0ae332118888d867ac346c0;p=platform%2Fkernel%2Flinux-rpi.git locking/lockdep: Reduce header dependencies in 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 Signed-off-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20210815211303.484161136@linutronix.de --- diff --git a/include/linux/debug_locks.h b/include/linux/debug_locks.h index edb5c18..3f49e65 100644 --- a/include/linux/debug_locks.h +++ b/include/linux/debug_locks.h @@ -3,8 +3,7 @@ #define __LINUX_DEBUG_LOCKING_H #include -#include -#include +#include struct task_struct;