From: Becky Bruce Date: Wed, 7 May 2008 18:28:16 +0000 (-0500) Subject: PPC: fix map_physmem build warning X-Git-Tag: v1.3.3~22 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f3612a7b199cab3942f60d9c1392eb39d58cc699;p=oweals%2Fu-boot.git 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 --- diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h index 00b7ec57e4..7cc28bfe3a 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); } /*