From: Becky Bruce Date: Thu, 4 Dec 2008 05:04:37 +0000 (-0600) Subject: powerpc: fix io.h build warning with CONFIG_PHYS_64BIT X-Git-Tag: v2009.01-rc1~3^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1ffecec37b57a59c139042267faac458e5324e9;p=kernel%2Fu-boot.git 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 --- 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