aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/locking/mutex.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2021-08-17 16:17:38 +0200
committerIngo Molnar <mingo@kernel.org>2021-08-17 18:24:22 +0200
commita321fb9038b335f3c447d1810b97d5f7eec152ac (patch)
treef18f09526e80dd1be6b6ab261e314a5f5e38e9aa /kernel/locking/mutex.c
parentlocking/rtmutex: Squash !RT tasks to DEFAULT_PRIO (diff)
downloadlinux-dev-a321fb9038b335f3c447d1810b97d5f7eec152ac.tar.xz
linux-dev-a321fb9038b335f3c447d1810b97d5f7eec152ac.zip
locking/mutex: Consolidate core headers, remove kernel/locking/mutex-debug.h
Having two header files which contain just the non-debug and debug variants is mostly waste of disc space and has no real value. Stick the debug variants into the common mutex.h file as counterpart to the stubs for the non-debug case. 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.995350521@linutronix.de
Diffstat (limited to 'kernel/locking/mutex.c')
-rw-r--r--kernel/locking/mutex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/locking/mutex.c b/kernel/locking/mutex.c
index 21c9e5da1858..acbe43d92836 100644
--- a/kernel/locking/mutex.c
+++ b/kernel/locking/mutex.c
@@ -30,11 +30,11 @@
#include <linux/debug_locks.h>
#include <linux/osq_lock.h>
+#include "mutex.h"
+
#ifdef CONFIG_DEBUG_MUTEXES
-# include "mutex-debug.h"
# define MUTEX_WARN_ON(cond) DEBUG_LOCKS_WARN_ON(cond)
#else
-# include "mutex.h"
# define MUTEX_WARN_ON(cond)
#endif