diff --git a/Kernel/FileSystem/Custody.cpp b/Kernel/FileSystem/Custody.cpp index 77a2571788e..36a7a25f844 100644 --- a/Kernel/FileSystem/Custody.cpp +++ b/Kernel/FileSystem/Custody.cpp @@ -26,6 +26,7 @@ #include #include +#include #include #include #include diff --git a/Kernel/FileSystem/Custody.h b/Kernel/FileSystem/Custody.h index 407480d85c5..9ba116079ce 100644 --- a/Kernel/FileSystem/Custody.h +++ b/Kernel/FileSystem/Custody.h @@ -26,17 +26,14 @@ #pragma once -#include #include #include #include #include +#include namespace Kernel { -class Inode; -class VFS; - // FIXME: Custody needs some locking. class Custody : public RefCounted diff --git a/Kernel/Forward.h b/Kernel/Forward.h index 22f9cc66c95..887dab65134 100644 --- a/Kernel/Forward.h +++ b/Kernel/Forward.h @@ -61,6 +61,7 @@ class TCPSocket; class TTY; class Thread; class UDPSocket; +class VFS; class VMObject; class WaitQueue; diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h index 0929b0d90f2..20b8db64022 100644 --- a/Kernel/Net/LocalSocket.h +++ b/Kernel/Net/LocalSocket.h @@ -34,8 +34,10 @@ namespace Kernel { class FileDescription; -class LocalSocket final : public Socket, public InlineLinkedListNode { +class LocalSocket final : public Socket + , public InlineLinkedListNode { friend class InlineLinkedListNode; + public: static KResultOr> create(int type); virtual ~LocalSocket() override; diff --git a/Kernel/Process.h b/Kernel/Process.h index 5fad6ea8d07..86bf48d8635 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -30,9 +30,6 @@ #include #include #include -#include -#include -#include #include #include #include diff --git a/Kernel/VM/RangeAllocator.h b/Kernel/VM/RangeAllocator.h index 68e9d57152e..4e17819fd9b 100644 --- a/Kernel/VM/RangeAllocator.h +++ b/Kernel/VM/RangeAllocator.h @@ -72,8 +72,7 @@ public: Vector carve(const Range&); private: - VirtualAddress m_base; - size_t m_size { 0 }; + VirtualAddress m_base; size_t m_size { 0 }; }; class RangeAllocator {