From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, v3, 6/6] linux/kernel.h: sync min, max, min3, max3 macros with Linux
Date: Mon, 24 Nov 2014 17:10:51 -0500 [thread overview]
Message-ID: <20141124221051.GP21184@bill-the-cat> (raw)
In-Reply-To: <1415297011-20327-7-git-send-email-yamada.m@jp.panasonic.com>
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 <yamada.m@jp.panasonic.com>
> Acked-by: Pavel Machek <pavel@denx.de>
> Acked-by: Lukasz Majewski <l.majewski@samsung.com>
> Tested-by: Lukasz Majewski <l.majewski@samsung.com>
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: <http://lists.denx.de/pipermail/u-boot/attachments/20141124/6d906c9e/attachment.pgp>
prev parent reply other threads:[~2014-11-24 22:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 18:03 [U-Boot] [PATCH v3 0/6] Collect utility macros to include/linux/kernel.h synced with Linux Masahiro Yamada
2014-11-06 18:03 ` [U-Boot] [PATCH v3 1/6] replace DIV_ROUND with DIV_ROUND_CLOSEST Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 2/6] include/common.h: remove DIV_ROUND definition Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 3/6] include: move various macros to include/linux/kernel.h Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 4/6] linux/kernel.h: import more macros Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot,v3,4/6] " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 5/6] linux/kernel.h: add typechecking to roundup macro Masahiro Yamada
2014-11-24 22:10 ` [U-Boot] [U-Boot, v3, " Tom Rini
2014-11-06 18:03 ` [U-Boot] [PATCH v3 6/6] linux/kernel.h: sync min, max, min3, max3 macros with Linux Masahiro Yamada
2014-11-24 22:10 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141124221051.GP21184@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox