summaryrefslogtreecommitdiff
path: root/Kernel/Mutex.cpp
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-07-31 00:40:22 -0700
committerGunnar Beutner <gunnar@beutner.name>2021-08-01 08:10:16 +0200
commit44e992429f2b6028a1b18b3898392d850afb6d14 (patch)
treeb0425afcf94089740c4ecb548d8a9bc7a30f5e11 /Kernel/Mutex.cpp
parent14c674183b1f84a563631186063b37424ab038ca (diff)
downloadserenity-44e992429f2b6028a1b18b3898392d850afb6d14.zip
Kernel: Only include AK/SourceLocation.h if LOCK_DEBUG is enabled
Don't pay the header inclusion cost if we aren't compiling with the LOCK_DEBUG option enabled.
Diffstat (limited to 'Kernel/Mutex.cpp')
-rw-r--r--Kernel/Mutex.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Mutex.cpp b/Kernel/Mutex.cpp
index 85aed7ea0b..6a84d826df 100644
--- a/Kernel/Mutex.cpp
+++ b/Kernel/Mutex.cpp
@@ -4,7 +4,9 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <AK/SourceLocation.h>
+#ifdef LOCK_DEBUG
+# include <AK/SourceLocation.h>
+#endif
#include <Kernel/Debug.h>
#include <Kernel/KSyms.h>
#include <Kernel/Mutex.h>