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

@@ -322,7 +322,7 @@ extern int memblock_free_phys(phys_addr_t addr, size_t size);
@param p the pointer to convert.
*/
extern phys_addr_t memblock_virt_to_phys(void *p);
extern phys_addr_t memblock_virt_to_phys(const void *p);
/* convert a physical address returned by memblock
to a virtual pointer.