Author: ian
Date: Sat Jan  2 22:55:59 2016
New Revision: 293064
URL: https://svnweb.freebsd.org/changeset/base/293064

Log:
  Cast pointer through uintptr_t on the way to uint64_t to squelch a warning.

Modified:
  head/sys/boot/uboot/lib/copy.c

Modified: head/sys/boot/uboot/lib/copy.c
==============================================================================
--- head/sys/boot/uboot/lib/copy.c      Sat Jan  2 22:31:14 2016        
(r293063)
+++ head/sys/boot/uboot/lib/copy.c      Sat Jan  2 22:55:59 2016        
(r293064)
@@ -100,7 +100,7 @@ uboot_loadaddr(u_int type, void *data, u
 
                biggest_block = 0;
                biggest_size = 0;
-               subldr = rounddown2((uint64_t)_start, KERN_ALIGN);
+               subldr = rounddown2((uint64_t)(uintptr_t)_start, KERN_ALIGN);
                eubldr = roundup2((uint64_t)uboot_heap_end, KERN_ALIGN);
                for (i = 0; i < si->mr_no; i++) {
                        if (si->mr[i].flags != MR_ATTR_DRAM)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to