From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Mon, 24 Nov 2014 17:10:51 -0500 Subject: [U-Boot] [U-Boot, v3, 6/6] linux/kernel.h: sync min, max, min3, max3 macros with Linux In-Reply-To: <1415297011-20327-7-git-send-email-yamada.m@jp.panasonic.com> References: <1415297011-20327-7-git-send-email-yamada.m@jp.panasonic.com> Message-ID: <20141124221051.GP21184@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 Fri, Nov 07, 2014 at 03:03:31AM +0900, Masahiro Yamada wrote: > U-Boot has never cared about the type when we get max/min of two > values, but Linux Kernel does. This commit gets min, max, min3, max3 > macros synced with the kernel introducing type checks. > > Many of references of those macros must be fixed to suppress warnings. > We have two options: > - Use min, max, min3, max3 only when the arguments have the same type > (or add casts to the arguments) > - Use min_t/max_t instead with the appropriate type for the first > argument > > Signed-off-by: Masahiro Yamada > Acked-by: Pavel Machek > Acked-by: Lukasz Majewski > Tested-by: Lukasz Majewski 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: