diff options
author | Becky Bruce | 2008-12-03 23:04:37 -0600 |
---|---|---|
committer | Wolfgang Denk | 2008-12-16 16:54:41 +0100 |
commit | b1ffecec37b57a59c139042267faac458e5324e9 (patch) | |
tree | 587334e74f0f0a25b506edbff016a4374f40d9ae /include/asm-ppc | |
parent | aa1bcca3d2e22af4dea9f02132f9b56a30378ded (diff) |
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/asm-ppc')
-rw-r--r-- | 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 c00de452d6d..64cb746b107 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 |