memblock: make virt_to_phys pointer param const

This commit is contained in:
2026-02-08 12:33:03 +00:00
parent 0490541dc9
commit aaa76ff197
2 changed files with 2 additions and 2 deletions

View File

@@ -488,7 +488,7 @@ void __next_memory_region(
it->__idx = ITER_END;
}
phys_addr_t memblock_virt_to_phys(void *p)
phys_addr_t memblock_virt_to_phys(const void *p)
{
return (phys_addr_t)p - memblock.m_voffset;
}