summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/Arch/x86/common/CPU.cpp2
-rw-r--r--Kernel/Arch/x86/i386/ASM_wrapper.cpp1
-rw-r--r--Kernel/Arch/x86/i386/Processor.cpp1
-rw-r--r--Kernel/Arch/x86/x86_64/ASM_wrapper.cpp1
-rw-r--r--Kernel/Graphics/Bochs/GraphicsAdapter.cpp1
-rw-r--r--Kernel/Graphics/FramebufferDevice.cpp1
-rw-r--r--Kernel/Interrupts/GenericInterruptHandler.cpp1
-rw-r--r--Kernel/Interrupts/IOAPIC.cpp1
-rw-r--r--Kernel/Process.cpp2
-rw-r--r--Kernel/Process.h4
-rw-r--r--Kernel/ProcessGroup.h1
-rw-r--r--Kernel/RTC.cpp1
-rw-r--r--Kernel/SanCov.cpp1
-rw-r--r--Kernel/Storage/AHCIPortHandler.h1
-rw-r--r--Kernel/Syscalls/chdir.cpp1
-rw-r--r--Kernel/Syscalls/chmod.cpp1
-rw-r--r--Kernel/Syscalls/fork.cpp1
-rw-r--r--Kernel/Syscalls/get_stack_bounds.cpp1
-rw-r--r--Kernel/Syscalls/open.cpp1
-rw-r--r--Kernel/Syscalls/pipe.cpp1
-rw-r--r--Kernel/Syscalls/profiling.cpp1
-rw-r--r--Kernel/Syscalls/purge.cpp1
-rw-r--r--Kernel/Syscalls/readlink.cpp1
-rw-r--r--Kernel/Syscalls/sigaction.cpp1
-rw-r--r--Kernel/Syscalls/socket.cpp1
-rw-r--r--Kernel/Syscalls/stat.cpp1
-rw-r--r--Kernel/Syscalls/statvfs.cpp1
-rw-r--r--Kernel/Syscalls/thread.cpp3
-rw-r--r--Kernel/Thread.h1
-rw-r--r--Kernel/Time/PIT.cpp1
-rw-r--r--Kernel/TimerQueue.cpp1
-rw-r--r--Kernel/kprintf.cpp2
32 files changed, 0 insertions, 40 deletions
diff --git a/Kernel/Arch/x86/common/CPU.cpp b/Kernel/Arch/x86/common/CPU.cpp
index 1acd2e7944..a5685896c2 100644
--- a/Kernel/Arch/x86/common/CPU.cpp
+++ b/Kernel/Arch/x86/common/CPU.cpp
@@ -6,8 +6,6 @@
#include <AK/Assertions.h>
#include <Kernel/Arch/x86/CPU.h>
-#include <Kernel/Arch/x86/Processor.h>
-#include <Kernel/KSyms.h>
#include <Kernel/Panic.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Arch/x86/i386/ASM_wrapper.cpp b/Kernel/Arch/x86/i386/ASM_wrapper.cpp
index 449529e8f2..81490562f7 100644
--- a/Kernel/Arch/x86/i386/ASM_wrapper.cpp
+++ b/Kernel/Arch/x86/i386/ASM_wrapper.cpp
@@ -7,7 +7,6 @@
#include <AK/Types.h>
#include <Kernel/Arch/x86/ASM_wrapper.h>
-#include <Kernel/Arch/x86/Processor.h>
#include <Kernel/Sections.h>
namespace Kernel {
diff --git a/Kernel/Arch/x86/i386/Processor.cpp b/Kernel/Arch/x86/i386/Processor.cpp
index b47cb59051..a3fec8a10c 100644
--- a/Kernel/Arch/x86/i386/Processor.cpp
+++ b/Kernel/Arch/x86/i386/Processor.cpp
@@ -7,7 +7,6 @@
#include <AK/StdLibExtras.h>
#include <Kernel/Arch/x86/Processor.h>
#include <Kernel/Arch/x86/TrapFrame.h>
-#include <Kernel/Panic.h>
#include <Kernel/Process.h>
#include <Kernel/Random.h>
#include <Kernel/Sections.h>
diff --git a/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp b/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp
index 754f453fe7..f92605572e 100644
--- a/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp
+++ b/Kernel/Arch/x86/x86_64/ASM_wrapper.cpp
@@ -7,7 +7,6 @@
#include <AK/Types.h>
#include <Kernel/Arch/x86/ASM_wrapper.h>
-#include <Kernel/Arch/x86/Processor.h>
#include <Kernel/Sections.h>
namespace Kernel {
diff --git a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp
index fd254dd045..8a2367a5ed 100644
--- a/Kernel/Graphics/Bochs/GraphicsAdapter.cpp
+++ b/Kernel/Graphics/Bochs/GraphicsAdapter.cpp
@@ -6,7 +6,6 @@
#include <AK/Atomic.h>
#include <AK/Checked.h>
-#include <AK/Singleton.h>
#include <Kernel/Bus/PCI/Access.h>
#include <Kernel/Bus/PCI/IDs.h>
#include <Kernel/Debug.h>
diff --git a/Kernel/Graphics/FramebufferDevice.cpp b/Kernel/Graphics/FramebufferDevice.cpp
index 822db73951..a283797375 100644
--- a/Kernel/Graphics/FramebufferDevice.cpp
+++ b/Kernel/Graphics/FramebufferDevice.cpp
@@ -5,7 +5,6 @@
*/
#include <AK/Checked.h>
-#include <AK/Singleton.h>
#include <Kernel/Debug.h>
#include <Kernel/Graphics/FramebufferDevice.h>
#include <Kernel/Graphics/GraphicsManagement.h>
diff --git a/Kernel/Interrupts/GenericInterruptHandler.cpp b/Kernel/Interrupts/GenericInterruptHandler.cpp
index 018d820234..6ed7dad5fe 100644
--- a/Kernel/Interrupts/GenericInterruptHandler.cpp
+++ b/Kernel/Interrupts/GenericInterruptHandler.cpp
@@ -8,7 +8,6 @@
#include <Kernel/Assertions.h>
#include <Kernel/Interrupts/GenericInterruptHandler.h>
#include <Kernel/Interrupts/InterruptManagement.h>
-#include <Kernel/Interrupts/PIC.h>
namespace Kernel {
GenericInterruptHandler& GenericInterruptHandler::from(u8 interrupt_number)
diff --git a/Kernel/Interrupts/IOAPIC.cpp b/Kernel/Interrupts/IOAPIC.cpp
index 551327b598..1bdf548515 100644
--- a/Kernel/Interrupts/IOAPIC.cpp
+++ b/Kernel/Interrupts/IOAPIC.cpp
@@ -5,7 +5,6 @@
*/
#include <AK/Optional.h>
-#include <Kernel/ACPI/MultiProcessorParser.h>
#include <Kernel/Arch/x86/InterruptDisabler.h>
#include <Kernel/Debug.h>
#include <Kernel/Interrupts/APIC.h>
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp
index 8e49c084ed..f3e18753a3 100644
--- a/Kernel/Process.cpp
+++ b/Kernel/Process.cpp
@@ -20,7 +20,6 @@
#include <Kernel/KBufferBuilder.h>
#include <Kernel/KSyms.h>
#include <Kernel/Module.h>
-#include <Kernel/Panic.h>
#include <Kernel/PerformanceEventBuffer.h>
#include <Kernel/PerformanceManager.h>
#include <Kernel/Process.h>
@@ -32,7 +31,6 @@
#include <Kernel/Thread.h>
#include <Kernel/VM/AnonymousVMObject.h>
#include <Kernel/VM/PageDirectory.h>
-#include <Kernel/VM/PrivateInodeVMObject.h>
#include <Kernel/VM/SharedInodeVMObject.h>
#include <LibC/errno_numbers.h>
#include <LibC/limits.h>
diff --git a/Kernel/Process.h b/Kernel/Process.h
index 02f77a3bd6..b6ffabe1e5 100644
--- a/Kernel/Process.h
+++ b/Kernel/Process.h
@@ -6,11 +6,9 @@
#pragma once
-#include <AK/Checked.h>
#include <AK/Concepts.h>
#include <AK/HashMap.h>
#include <AK/IntrusiveList.h>
-#include <AK/NonnullOwnPtrVector.h>
#include <AK/NonnullRefPtrVector.h>
#include <AK/String.h>
#include <AK/Userspace.h>
@@ -30,8 +28,6 @@
#include <Kernel/ThreadTracer.h>
#include <Kernel/UnixTypes.h>
#include <Kernel/UnveilNode.h>
-#include <Kernel/VM/AllocationStrategy.h>
-#include <Kernel/VM/RangeAllocator.h>
#include <Kernel/VM/Space.h>
#include <LibC/elf.h>
#include <LibC/signal_numbers.h>
diff --git a/Kernel/ProcessGroup.h b/Kernel/ProcessGroup.h
index 317067629f..a2f5b2af0c 100644
--- a/Kernel/ProcessGroup.h
+++ b/Kernel/ProcessGroup.h
@@ -9,7 +9,6 @@
#include <AK/IntrusiveList.h>
#include <AK/RefCounted.h>
#include <AK/Weakable.h>
-#include <Kernel/Mutex.h>
#include <Kernel/SpinLock.h>
#include <Kernel/UnixTypes.h>
diff --git a/Kernel/RTC.cpp b/Kernel/RTC.cpp
index cd756973f1..1d616615c7 100644
--- a/Kernel/RTC.cpp
+++ b/Kernel/RTC.cpp
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <AK/Assertions.h>
#include <AK/Time.h>
#include <Kernel/CMOS.h>
#include <Kernel/RTC.h>
diff --git a/Kernel/SanCov.cpp b/Kernel/SanCov.cpp
index dfb81d2c45..90d2fb0262 100644
--- a/Kernel/SanCov.cpp
+++ b/Kernel/SanCov.cpp
@@ -5,7 +5,6 @@
*/
#include <Kernel/Devices/KCOVDevice.h>
-#include <Kernel/Process.h>
#include <Kernel/Thread.h>
extern bool g_in_early_boot;
diff --git a/Kernel/Storage/AHCIPortHandler.h b/Kernel/Storage/AHCIPortHandler.h
index c698693e3d..fa75283c4c 100644
--- a/Kernel/Storage/AHCIPortHandler.h
+++ b/Kernel/Storage/AHCIPortHandler.h
@@ -6,7 +6,6 @@
#pragma once
-#include <AK/OwnPtr.h>
#include <AK/RefPtr.h>
#include <Kernel/Devices/Device.h>
#include <Kernel/IO.h>
diff --git a/Kernel/Syscalls/chdir.cpp b/Kernel/Syscalls/chdir.cpp
index f3442b695a..ee70543b29 100644
--- a/Kernel/Syscalls/chdir.cpp
+++ b/Kernel/Syscalls/chdir.cpp
@@ -5,7 +5,6 @@
*/
#include <Kernel/FileSystem/Custody.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Syscalls/chmod.cpp b/Kernel/Syscalls/chmod.cpp
index caf55a939a..21502d6ce5 100644
--- a/Kernel/Syscalls/chmod.cpp
+++ b/Kernel/Syscalls/chmod.cpp
@@ -5,7 +5,6 @@
*/
#include <AK/StringView.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Syscalls/fork.cpp b/Kernel/Syscalls/fork.cpp
index f924756498..7aab257713 100644
--- a/Kernel/Syscalls/fork.cpp
+++ b/Kernel/Syscalls/fork.cpp
@@ -7,7 +7,6 @@
#include <Kernel/Debug.h>
#include <Kernel/FileSystem/Custody.h>
#include <Kernel/FileSystem/FileDescription.h>
-#include <Kernel/Panic.h>
#include <Kernel/PerformanceManager.h>
#include <Kernel/Process.h>
#include <Kernel/VM/Region.h>
diff --git a/Kernel/Syscalls/get_stack_bounds.cpp b/Kernel/Syscalls/get_stack_bounds.cpp
index 574a4d32f8..cb372ed20d 100644
--- a/Kernel/Syscalls/get_stack_bounds.cpp
+++ b/Kernel/Syscalls/get_stack_bounds.cpp
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <Kernel/Panic.h>
#include <Kernel/Process.h>
#include <Kernel/VM/Region.h>
diff --git a/Kernel/Syscalls/open.cpp b/Kernel/Syscalls/open.cpp
index 43b961a82a..209396ca97 100644
--- a/Kernel/Syscalls/open.cpp
+++ b/Kernel/Syscalls/open.cpp
@@ -6,7 +6,6 @@
#include <Kernel/Debug.h>
#include <Kernel/FileSystem/Custody.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Syscalls/pipe.cpp b/Kernel/Syscalls/pipe.cpp
index 93bbd31801..3dd0c72b52 100644
--- a/Kernel/Syscalls/pipe.cpp
+++ b/Kernel/Syscalls/pipe.cpp
@@ -5,7 +5,6 @@
*/
#include <Kernel/FileSystem/FIFO.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/Process.h>
namespace Kernel {
diff --git a/Kernel/Syscalls/profiling.cpp b/Kernel/Syscalls/profiling.cpp
index 33353f62e6..3a7a44df32 100644
--- a/Kernel/Syscalls/profiling.cpp
+++ b/Kernel/Syscalls/profiling.cpp
@@ -5,7 +5,6 @@
*/
#include <Kernel/CoreDump.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/PerformanceManager.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Syscalls/purge.cpp b/Kernel/Syscalls/purge.cpp
index 1a58486bc1..6b3d8ba256 100644
--- a/Kernel/Syscalls/purge.cpp
+++ b/Kernel/Syscalls/purge.cpp
@@ -5,7 +5,6 @@
*/
#include <AK/NonnullRefPtrVector.h>
-#include <Kernel/Arch/x86/InterruptDisabler.h>
#include <Kernel/Process.h>
#include <Kernel/VM/AnonymousVMObject.h>
#include <Kernel/VM/InodeVMObject.h>
diff --git a/Kernel/Syscalls/readlink.cpp b/Kernel/Syscalls/readlink.cpp
index 91047bff62..98cf8eaba0 100644
--- a/Kernel/Syscalls/readlink.cpp
+++ b/Kernel/Syscalls/readlink.cpp
@@ -5,7 +5,6 @@
*/
#include <AK/StringView.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Syscalls/sigaction.cpp b/Kernel/Syscalls/sigaction.cpp
index cbec96a400..bb5b41b3c7 100644
--- a/Kernel/Syscalls/sigaction.cpp
+++ b/Kernel/Syscalls/sigaction.cpp
@@ -6,7 +6,6 @@
#include <Kernel/Arch/x86/InterruptDisabler.h>
#include <Kernel/Arch/x86/SmapDisabler.h>
-#include <Kernel/Panic.h>
#include <Kernel/Process.h>
namespace Kernel {
diff --git a/Kernel/Syscalls/socket.cpp b/Kernel/Syscalls/socket.cpp
index e8d3a3bbda..5af6b526ce 100644
--- a/Kernel/Syscalls/socket.cpp
+++ b/Kernel/Syscalls/socket.cpp
@@ -5,7 +5,6 @@
*/
#include <Kernel/FileSystem/FileDescription.h>
-#include <Kernel/Net/IPv4Socket.h>
#include <Kernel/Net/LocalSocket.h>
#include <Kernel/Process.h>
#include <Kernel/UnixTypes.h>
diff --git a/Kernel/Syscalls/stat.cpp b/Kernel/Syscalls/stat.cpp
index 9ce48ad995..7d42d49a2b 100644
--- a/Kernel/Syscalls/stat.cpp
+++ b/Kernel/Syscalls/stat.cpp
@@ -6,7 +6,6 @@
#include <AK/NonnullRefPtrVector.h>
#include <Kernel/FileSystem/Custody.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Syscalls/statvfs.cpp b/Kernel/Syscalls/statvfs.cpp
index 791bc8e1c8..322211956d 100644
--- a/Kernel/Syscalls/statvfs.cpp
+++ b/Kernel/Syscalls/statvfs.cpp
@@ -5,7 +5,6 @@
*/
#include <Kernel/FileSystem/Custody.h>
-#include <Kernel/FileSystem/FileDescription.h>
#include <Kernel/FileSystem/VirtualFileSystem.h>
#include <Kernel/Process.h>
diff --git a/Kernel/Syscalls/thread.cpp b/Kernel/Syscalls/thread.cpp
index 2fae689d90..b896c0997d 100644
--- a/Kernel/Syscalls/thread.cpp
+++ b/Kernel/Syscalls/thread.cpp
@@ -7,12 +7,9 @@
#include <AK/Checked.h>
#include <AK/String.h>
#include <AK/StringBuilder.h>
-#include <AK/StringView.h>
-#include <Kernel/Panic.h>
#include <Kernel/PerformanceManager.h>
#include <Kernel/Process.h>
#include <Kernel/VM/MemoryManager.h>
-#include <Kernel/VM/PageDirectory.h>
namespace Kernel {
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index dadb663bfd..212effb3e6 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -8,7 +8,6 @@
#include <AK/Concepts.h>
#include <AK/EnumBits.h>
-#include <AK/Function.h>
#include <AK/HashMap.h>
#include <AK/IntrusiveList.h>
#include <AK/Optional.h>
diff --git a/Kernel/Time/PIT.cpp b/Kernel/Time/PIT.cpp
index 581c9a6afb..f2e825726c 100644
--- a/Kernel/Time/PIT.cpp
+++ b/Kernel/Time/PIT.cpp
@@ -7,7 +7,6 @@
#include <Kernel/Arch/x86/InterruptDisabler.h>
#include <Kernel/IO.h>
#include <Kernel/Interrupts/GenericInterruptHandler.h>
-#include <Kernel/Interrupts/PIC.h>
#include <Kernel/Scheduler.h>
#include <Kernel/Sections.h>
#include <Kernel/Thread.h>
diff --git a/Kernel/TimerQueue.cpp b/Kernel/TimerQueue.cpp
index 1fe882bf17..766dafc03c 100644
--- a/Kernel/TimerQueue.cpp
+++ b/Kernel/TimerQueue.cpp
@@ -4,7 +4,6 @@
* SPDX-License-Identifier: BSD-2-Clause
*/
-#include <AK/NonnullOwnPtr.h>
#include <AK/Singleton.h>
#include <AK/Time.h>
#include <Kernel/Scheduler.h>
diff --git a/Kernel/kprintf.cpp b/Kernel/kprintf.cpp
index f0b1d7f12c..4f22b270dc 100644
--- a/Kernel/kprintf.cpp
+++ b/Kernel/kprintf.cpp
@@ -8,10 +8,8 @@
#include <AK/Types.h>
#include <Kernel/ConsoleDevice.h>
#include <Kernel/Devices/PCISerialDevice.h>
-#include <Kernel/Graphics/Console/Console.h>
#include <Kernel/Graphics/GraphicsManagement.h>
#include <Kernel/IO.h>
-#include <Kernel/Process.h>
#include <Kernel/SpinLock.h>
#include <Kernel/TTY/ConsoleManagement.h>
#include <Kernel/kstdio.h>