vm: change virt_to_phys param to const

This commit is contained in:
2026-02-08 12:51:23 +00:00
parent 26afc3c6c3
commit 2b1bed844a

View File

@@ -38,7 +38,7 @@ static size_t page_order_bytes[] = {
[VM_PAGE_64G] = 0x1000000000, [VM_PAGE_64G] = 0x1000000000,
}; };
phys_addr_t vm_virt_to_phys(void *p) phys_addr_t vm_virt_to_phys(const void *p)
{ {
uintptr_t pv = (uintptr_t)p; uintptr_t pv = (uintptr_t)p;