Author: jhibbits
Date: Sat Jan 19 05:20:31 2019
New Revision: 343169
URL: https://svnweb.freebsd.org/changeset/base/343169

Log:
  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

Modified:
  head/sys/contrib/ncsw/user/env/xx.c

Modified: head/sys/contrib/ncsw/user/env/xx.c
==============================================================================
--- head/sys/contrib/ncsw/user/env/xx.c Sat Jan 19 04:54:12 2019        
(r343168)
+++ head/sys/contrib/ncsw/user/env/xx.c Sat Jan 19 05:20:31 2019        
(r343169)
@@ -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);
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to