Kernel: Remove unused MemoryManager::find_region_from_vaddr()

This commit is contained in:
Andreas Kling 2021-07-11 15:21:30 +02:00
parent a8d86cc533
commit 055726ecf5
Notes: sideshowbarker 2024-07-18 09:19:40 +09:00
2 changed files with 0 additions and 9 deletions

View File

@ -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);

View File

@ -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();