* [U-Boot] SAMSUNG: serial: remove compiler warnings
@ 2010-07-06 12:02 Minkyu Kang
2010-07-09 4:32 ` Minkyu Kang
0 siblings, 1 reply; 2+ messages in thread
From: Minkyu Kang @ 2010-07-06 12:02 UTC (permalink / raw)
To: u-boot
remove below warnings
serial_s5p.c: In function 'serial_getc_dev':
serial_s5p.c:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
serial_s5p.c: In function 'serial_putc_dev':
serial_s5p.c:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
drivers/serial/serial_s5p.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/serial/serial_s5p.c b/drivers/serial/serial_s5p.c
index 9747db3..e0d4e80 100644
--- a/drivers/serial/serial_s5p.c
+++ b/drivers/serial/serial_s5p.c
@@ -133,7 +133,7 @@ int serial_getc_dev(const int dev_index)
return 0;
}
- return (int)(readl(&uart->urxh) & 0xff);
+ return (int)(readb(&uart->urxh) & 0xff);
}
/*
@@ -149,7 +149,7 @@ void serial_putc_dev(const char c, const int dev_index)
return;
}
- writel(c, &uart->utxh);
+ writeb(c, &uart->utxh);
/* If \n, also do \r */
if (c == '\n')
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] SAMSUNG: serial: remove compiler warnings
2010-07-06 12:02 [U-Boot] SAMSUNG: serial: remove compiler warnings Minkyu Kang
@ 2010-07-09 4:32 ` Minkyu Kang
0 siblings, 0 replies; 2+ messages in thread
From: Minkyu Kang @ 2010-07-09 4:32 UTC (permalink / raw)
To: u-boot
On 6 July 2010 21:02, Minkyu Kang <mk7.kang@samsung.com> wrote:
> remove below warnings
> serial_s5p.c: In function 'serial_getc_dev':
> serial_s5p.c:136: warning: dereferencing type-punned pointer will break strict-aliasing rules
> serial_s5p.c: In function 'serial_putc_dev':
> serial_s5p.c:152: warning: dereferencing type-punned pointer will break strict-aliasing rules
>
> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> ?drivers/serial/serial_s5p.c | ? ?4 ++--
> ?1 files changed, 2 insertions(+), 2 deletions(-)
>
applied to u-boot-samsung
--
from. prom.
www.promsoft.net
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-07-09 4:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-06 12:02 [U-Boot] SAMSUNG: serial: remove compiler warnings Minkyu Kang
2010-07-09 4:32 ` Minkyu Kang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox