dpaa: fix 32-bit build
Book-E powerpc uses 64-bit vm_paddr_t, and 32-bit powerpc has 32-bit pointers, so gcc errors with cast to pointer from integer of different size. As this will not actually be used in reality anyway, simply quiet the warning by casting through uintptr_t. MFC after: 3 weeks MFC with: r343168
This commit is contained in:
parent
bb0e68335f
commit
a3b41b11db
2
sys/contrib/ncsw/user/env/xx.c
vendored
2
sys/contrib/ncsw/user/env/xx.c
vendored
@ -763,7 +763,7 @@ XX_PhysToVirt(physAddress_t addr)
|
||||
return ((void *)(pv->pv_va + ((vm_offset_t)addr & PAGE_MASK)));
|
||||
|
||||
if (PMAP_HAS_DMAP)
|
||||
return ((void *)PHYS_TO_DMAP(addr));
|
||||
return ((void *)(uintptr_t)PHYS_TO_DMAP(addr));
|
||||
|
||||
printf("NetCommSW: "
|
||||
"Unable to translate physical address 0x%09jx!\n", (uintmax_t)addr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user