From: Becky Bruce Date: Wed, 3 Dec 2008 23:04:37 -0600 Subject: [U-Boot] [PATCH 01/11] powerpc: fix io.h build warning with CONFIG_PHYS_64BIT In-Reply-To: <1228367087-27268-1-git-send-email-beckyb@kernel.crashing.org> References: <1228367087-27268-1-git-send-email-beckyb@kernel.crashing.org> Message-ID: <1228367087-27268-2-git-send-email-beckyb@kernel.crashing.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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 a8003ef..4ddad26 100644 --- a/include/asm-ppc/io.h +++ b/include/asm-ppc/io.h @@ -311,7 +311,7 @@ static inline phys_addr_t virt_to_phys(void * vaddr) #ifdef CONFIG_ADDR_MAP return addrmap_virt_to_phys(vaddr); #else - return (phys_addr_t)(vaddr); + return (phys_addr_t)((unsigned long)vaddr); #endif } -- 1.5.6.5