* [U-Boot-Users] [PATCH] PPC: fix map_physmem build warning
@ 2008-05-07 18:28 Becky Bruce
2008-05-09 23:00 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: Becky Bruce @ 2008-05-07 18:28 UTC (permalink / raw)
To: u-boot
map_physmem currently generates a warning when CONFIG_PHYS_64BIT is
enabled. This quiets the warning.
Signed-off-by: Becky Bruce <Becky.Bruce@freescale.com>
---
include/asm-ppc/io.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h
index 00b7ec5..7cc28bf 100644
--- a/include/asm-ppc/io.h
+++ b/include/asm-ppc/io.h
@@ -251,7 +251,7 @@ extern inline void out_be32(volatile unsigned __iomem *addr, int val)
static inline void *
map_physmem(phys_addr_t paddr, unsigned long len, unsigned long flags)
{
- return (void *)paddr;
+ return (void *)((unsigned long)paddr);
}
/*
--
1.5.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot-Users] [PATCH] PPC: fix map_physmem build warning
2008-05-07 18:28 [U-Boot-Users] [PATCH] PPC: fix map_physmem build warning Becky Bruce
@ 2008-05-09 23:00 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2008-05-09 23:00 UTC (permalink / raw)
To: u-boot
In message <Pine.LNX.4.64.0805071325440.12847@monty.am.freescale.net> you wrote:
> map_physmem currently generates a warning when CONFIG_PHYS_64BIT is
> enabled. This quiets the warning.
>
> Signed-off-by: Becky Bruce <Becky.Bruce@freescale.com>
> ---
> include/asm-ppc/io.h | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied, thanks.
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
Bankers do it with interest (penalty for early withdrawal).
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-05-09 23:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-07 18:28 [U-Boot-Users] [PATCH] PPC: fix map_physmem build warning Becky Bruce
2008-05-09 23:00 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox