mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user