diff --git a/Kernel/FileSystem/VirtualFileSystem.h b/Kernel/FileSystem/VirtualFileSystem.h index 1969327698..f3f2ddad76 100644 --- a/Kernel/FileSystem/VirtualFileSystem.h +++ b/Kernel/FileSystem/VirtualFileSystem.h @@ -43,7 +43,7 @@ namespace Kernel { class Custody; class Device; class FileDescription; -class UnveiledPath; +struct UnveiledPath; struct UidAndGid { uid_t uid; diff --git a/Kernel/Thread.h b/Kernel/Thread.h index f6c1a189fd..f8f9d1ded0 100644 --- a/Kernel/Thread.h +++ b/Kernel/Thread.h @@ -530,7 +530,7 @@ private: IntrusiveListNode m_wait_queue_node; private: - friend class SchedulerData; + friend struct SchedulerData; friend class WaitQueue; bool unlock_process_if_locked(); void relock_process(bool did_unlock); diff --git a/Kernel/VM/MappedROM.h b/Kernel/VM/MappedROM.h index 9be57c2f45..26caff10d8 100644 --- a/Kernel/VM/MappedROM.h +++ b/Kernel/VM/MappedROM.h @@ -31,7 +31,8 @@ namespace Kernel { -struct MappedROM { +class MappedROM { +public: const u8* base() const { return region->vaddr().offset(offset).as_ptr(); } const u8* end() const { return base() + size; } OwnPtr region; diff --git a/Libraries/LibDebug/Dwarf/Expression.h b/Libraries/LibDebug/Dwarf/Expression.h index fedc636c83..ef13830353 100644 --- a/Libraries/LibDebug/Dwarf/Expression.h +++ b/Libraries/LibDebug/Dwarf/Expression.h @@ -29,7 +29,7 @@ #include "AK/ByteBuffer.h" #include "AK/Types.h" -class PtraceRegisters; +struct PtraceRegisters; namespace Debug::Dwarf::Expression {