From: Tom Rini Date: Thu, 18 Jun 2015 18:46:26 -0400 Subject: [U-Boot] mmc_write.c: Make mmc_berase do 32bit safe 64bit math In-Reply-To: <1434070411-28082-1-git-send-email-trini@konsulko.com> References: <1434070411-28082-1-git-send-email-trini@konsulko.com> Message-ID: <20150618224626.GO28577@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Jun 11, 2015 at 08:53:31PM -0400, Tom Rini wrote: > We want to see if the requested start or total block count are > unaligned. We discard the whole numbers and only care about the > remainder. Update the code to use div_u64_rem here and add a comment. > > Cc: Hans de Goede > Cc: Pantelis Antoniou > Cc: Bernhard Nortmann > Reported-by: Simon Glass > Signed-off-by: Tom Rini > Tested-by: Bernhard Nortmann > Reviewed-by: Hans de Goede Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: