[uaccess] Add explicit casts to and from userptr_t where needed

Allow for the possibility of userptr_t becoming a pointer type by
adding explicit casts where necessary.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2025-04-20 13:39:32 +01:00
parent 63d27c6311
commit 71174e19d8
6 changed files with 10 additions and 10 deletions

View File

@@ -487,7 +487,7 @@ static inline int golan_provide_pages ( struct golan *golan , uint32_t pages
next_page_addr += GOLAN_PAGE_SIZE ) {
addr = next_page_addr;
if (GOLAN_PAGE_MASK & user_to_phys(addr, 0)) {
DBGC (golan ,"Addr not Page alligned [%lx %lx]\n", user_to_phys(addr, 0), addr);
DBGC (golan ,"Addr not Page alligned [%lx]\n", user_to_phys(addr, 0));
}
mailbox->mblock.data[j] = USR_2_BE64_BUS(addr);
}