* [PATCH] [ARM] orion5x: fix compiler cast warnings in ts78xx-setup.c
@ 2011-03-05 11:31 Alexander Clouter
2011-03-05 12:36 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Clouter @ 2011-03-05 11:31 UTC (permalink / raw)
To: linux-arm-kernel
Signed-off-by: Alexander Clouter <alex@digriz.org.uk>
---
arch/arm/mach-orion5x/ts78xx-setup.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c
index 82e57a6..78e3b9a 100644
--- a/arch/arm/mach-orion5x/ts78xx-setup.c
+++ b/arch/arm/mach-orion5x/ts78xx-setup.c
@@ -200,7 +200,7 @@ static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd,
int sz;
if (off) {
- sz = min(4 - off, len);
+ sz = min((int) (4 - off), len);
writesb(io_base, buf, sz);
buf += sz;
len -= sz;
@@ -227,7 +227,7 @@ static void ts78xx_ts_nand_read_buf(struct mtd_info *mtd,
int sz;
if (off) {
- sz = min(4 - off, len);
+ sz = min((int) (4 - off), len);
readsb(io_base, buf, sz);
buf += sz;
len -= sz;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [PATCH] [ARM] orion5x: fix compiler cast warnings in ts78xx-setup.c
2011-03-05 11:31 [PATCH] [ARM] orion5x: fix compiler cast warnings in ts78xx-setup.c Alexander Clouter
@ 2011-03-05 12:36 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2011-03-05 12:36 UTC (permalink / raw)
To: linux-arm-kernel
Hello.
On 05-03-2011 14:31, Alexander Clouter wrote:
> Signed-off-by: Alexander Clouter<alex@digriz.org.uk>
> ---
> arch/arm/mach-orion5x/ts78xx-setup.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
> diff --git a/arch/arm/mach-orion5x/ts78xx-setup.c b/arch/arm/mach-orion5x/ts78xx-setup.c
> index 82e57a6..78e3b9a 100644
> --- a/arch/arm/mach-orion5x/ts78xx-setup.c
> +++ b/arch/arm/mach-orion5x/ts78xx-setup.c
> @@ -200,7 +200,7 @@ static void ts78xx_ts_nand_write_buf(struct mtd_info *mtd,
> int sz;
>
> if (off) {
> - sz = min(4 - off, len);
> + sz = min((int) (4 - off), len);
Maybe:
sz = min_t(int, 4 - off, len);
WBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-05 12:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-05 11:31 [PATCH] [ARM] orion5x: fix compiler cast warnings in ts78xx-setup.c Alexander Clouter
2011-03-05 12:36 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox