summaryrefslogtreecommitdiff
path: root/Kernel/VM/Region.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-14 01:38:47 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-14 01:39:04 +0100
commit4021264201d99372fb1e84899be9ae84a5510415 (patch)
tree990d1db1fe1cbca70dc10885ebf64ac5b4e9df3e /Kernel/VM/Region.h
parent8415866c0371eae16e3c1221720efaa6c3cec3e2 (diff)
downloadserenity-4021264201d99372fb1e84899be9ae84a5510415.zip
Kernel: Make the Region constructor private
We can use adopt_own(*new T) instead of make<T>().
Diffstat (limited to 'Kernel/VM/Region.h')
-rw-r--r--Kernel/VM/Region.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/Kernel/VM/Region.h b/Kernel/VM/Region.h
index 0fba189157..5d8b7464a2 100644
--- a/Kernel/VM/Region.h
+++ b/Kernel/VM/Region.h
@@ -228,9 +228,6 @@ public:
Region* m_next { nullptr };
Region* m_prev { nullptr };
- // NOTE: These are public so we can make<> them.
- Region(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, String, u8 access, Cacheable, bool shared);
-
bool remap_vmobject_page_range(size_t page_index, size_t page_count);
bool is_volatile(VirtualAddress vaddr, size_t size) const;
@@ -247,6 +244,8 @@ public:
void set_syscall_region(bool b) { m_syscall_region = b; }
private:
+ Region(const Range&, NonnullRefPtr<VMObject>, size_t offset_in_vmobject, String, u8 access, Cacheable, bool shared);
+
bool do_remap_vmobject_page_range(size_t page_index, size_t page_count);
void set_access_bit(Access access, bool b)