summaryrefslogtreecommitdiff
path: root/Kernel
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-09-12 00:44:54 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-12 13:46:15 +0200
commit0d79e57c4daec516cef064f4cbbb8a3e17962f9f (patch)
treedddcf60fdfd0bcc5d07df4ddb01cb552fb58735a /Kernel
parentd16f5108055b1f84cd71859b3034357e7e41eb4b (diff)
downloadserenity-0d79e57c4daec516cef064f4cbbb8a3e17962f9f.zip
Kernel: Fix various forward declarations
I decided to modify MappedROM.h because all other entried in Forward.h are also classes, and this is visually more pleasing. Other than that, it just doesn't make any difference which way we resolve the conflicts.
Diffstat (limited to 'Kernel')
-rw-r--r--Kernel/FileSystem/VirtualFileSystem.h2
-rw-r--r--Kernel/Thread.h2
-rw-r--r--Kernel/VM/MappedROM.h3
3 files changed, 4 insertions, 3 deletions
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> region;