Date: Sat, 19 Jan 2019 05:20:32 +0000 (UTC) From: Justin Hibbits <jhibbits@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r343169 - head/sys/contrib/ncsw/user/env Message-ID: <201901190520.x0J5KWUu087347@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901190520.x0J5KWUu087347>