[U-Boot-Users] [PATCH] PPC: fix map_physmem build warning

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); }
/*

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
participants (2)
-
Becky Bruce
-
Wolfgang Denk