summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-07-31 00:38:46 -0700
committerGunnar Beutner <gunnar@beutner.name>2021-08-01 08:10:16 +0200
commit14c674183b1f84a563631186063b37424ab038ca (patch)
tree3d24f7f2855adf33ea38c3b3fe092d2ba2f09edd /Kernel
parented996fcced22854efb4b8185e9328827100ca39a (diff)
downloadserenity-14c674183b1f84a563631186063b37424ab038ca.zip
Kernel: Only include KCOVDevice.h if ENABLE_KERNEL_COVERAGE_COLLECTION
There's no reason to include this header if we aren't going to actually use it.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Process.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index f3e18753a3..4b599eef71 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -12,7 +12,9 @@
#include <Kernel/Arch/x86/InterruptDisabler.h>
#include <Kernel/CoreDump.h>
#include <Kernel/Debug.h>
-#include <Kernel/Devices/KCOVDevice.h>
+#ifdef ENABLE_KERNEL_COVERAGE_COLLECTION
+# include <Kernel/Devices/KCOVDevice.h>
+#endif
#include <Kernel/Devices/NullDevice.h>
#include <Kernel/FileSystem/Custody.h>
#include <Kernel/FileSystem/FileDescription.h>