summaryrefslogtreecommitdiff
path: root/Kernel/VM
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-11 15:21:30 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-11 17:42:31 +0200
commit055726ecf5e0e0160da0986ebdb38cafa6b9806f (patch)
tree23532f9f6415e2ea383c1faed591316cb617f9a4 /Kernel/VM
parenta8d86cc533fcbc78b8d3fb8bb05fe00768381808 (diff)
downloadserenity-055726ecf5e0e0160da0986ebdb38cafa6b9806f.zip
Kernel: Remove unused MemoryManager::find_region_from_vaddr()
Diffstat (limited to 'Kernel/VM')
-rw-r--r--Kernel/VM/MemoryManager.cpp8
-rw-r--r--Kernel/VM/MemoryManager.h1
2 files changed, 0 insertions, 9 deletions
diff --git a/Kernel/VM/MemoryManager.cpp b/Kernel/VM/MemoryManager.cpp
index e5b578ada7..613dd2f6c2 100644
--- a/Kernel/VM/MemoryManager.cpp
+++ b/Kernel/VM/MemoryManager.cpp
@@ -593,14 +593,6 @@ Region* MemoryManager::find_user_region_from_vaddr(Space& space, VirtualAddress
return space.find_region_containing({ vaddr, 1 });
}
-Region* MemoryManager::find_region_from_vaddr(Space& space, VirtualAddress vaddr)
-{
- ScopedSpinLock lock(s_mm_lock);
- if (auto* region = find_user_region_from_vaddr(space, vaddr))
- return region;
- return kernel_region_from_vaddr(vaddr);
-}
-
Region* MemoryManager::find_region_from_vaddr(VirtualAddress vaddr)
{
ScopedSpinLock lock(s_mm_lock);
diff --git a/Kernel/VM/MemoryManager.h b/Kernel/VM/MemoryManager.h
index 5bccc762aa..2be1fb9db8 100644
--- a/Kernel/VM/MemoryManager.h
+++ b/Kernel/VM/MemoryManager.h
@@ -186,7 +186,6 @@ public:
callback(vmobject);
}
- static Region* find_region_from_vaddr(Space&, VirtualAddress);
static Region* find_user_region_from_vaddr(Space&, VirtualAddress);
void dump_kernel_regions();