summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBecky Bruce <beckyb@kernel.crashing.org>2008-12-03 23:04:37 -0600
committerWolfgang Denk <wd@denx.de>2008-12-16 16:54:41 +0100
commitb1ffecec37b57a59c139042267faac458e5324e9 (patch)
tree587334e74f0f0a25b506edbff016a4374f40d9ae /include
parentaa1bcca3d2e22af4dea9f02132f9b56a30378ded (diff)
downloadu-boot-imx-b1ffecec37b57a59c139042267faac458e5324e9.zip
u-boot-imx-b1ffecec37b57a59c139042267faac458e5324e9.tar.gz
u-boot-imx-b1ffecec37b57a59c139042267faac458e5324e9.tar.bz2
powerpc: fix io.h build warning with CONFIG_PHYS_64BIT
Casting a pointer to a phys_addr_t when it's an unsigned long long on a 32-bit system without first casting to a non-pointer type generates a compiler warning. Fix this. Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h
index c00de45..64cb746 100644
--- a/include/asm-ppc/io.h
+++ b/include/asm-ppc/io.h
@@ -300,7 +300,7 @@ static inline void unmap_physmem(void *vaddr, unsigned long flags)
static inline phys_addr_t virt_to_phys(void * vaddr)
{
- return (phys_addr_t)(vaddr);
+ return (phys_addr_t)((unsigned long)vaddr);
}
#endif