From: Wolfgang Denk Date: Tue, 01 Feb 2011 08:51:40 +0100 Subject: [U-Boot] [PATCH 1/1] Fix min/max macros in include/common.h In-Reply-To: <201101311955.50902.Aaron.Williams@caviumnetworks.com> References: <201101311955.50902.Aaron.Williams@caviumnetworks.com> Message-ID: <20110201075140.47318B187@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Aaron Williams, In message <201101311955.50902.Aaron.Williams@caviumnetworks.com> you wrote: > There is a bug in the min and max macros in common.h which occurs if > Y is a larger type than X. For example, if Y is a 64-bit value and X > is a 32-bit value then Y will be truncated to 32-bits. This fix > matches what is done in the Linux kernel but without the additional > type checking present in the kernel version. Please stick to the rules. When resubmitting a patch you are supposed to mark it as a reposting, and to keep the message references in place so mails get threaded properly. Please make sure and read http://www.denx.de/wiki/view/U-Boot/Patches#Sending_updated_patch_versions Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Always leave room to add an explanation if it doesn't work out.