Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jan 2016 22:55:59 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293064 - head/sys/boot/uboot/lib
Message-ID:  <201601022255.u02Mtxe4043921@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601022255.u02Mtxe4043921>