Skip to contentSkip to conversation

PPC: fix map_physmem build warning

PATCH New Becky Bruce 2 participants 2 messages May 7, 2008 – May 9, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PPC: fix map_physmem build warning

map_physmem currently generates a warning when CONFIG_PHYS_64BIT is enabled. This quiets the warning.

---
 include/asm-ppc/io.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
include/asm-ppc/io.h +1 -1
index 00b7ec5..7cc28bf 100644
@@ -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);
 }
 
 /*
Signature · 1 line
1.5.4.1
#1 lore raw

PATCH 1/1 PPC: fix map_physmem build warning

Quoted 7 lines · In message <[email protected]> you wrote:

map_physmem currently generates a warning when CONFIG_PHYS_64BIT is enabled. This quiets the warning.

---
 include/asm-ppc/io.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
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).