From f3612a7b199cab3942f60d9c1392eb39d58cc699 Mon Sep 17 00:00:00 2001
From: Becky Bruce <bgill@freescale.com>
Date: Wed, 7 May 2008 13:28:16 -0500
Subject: [PATCH] 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 <Becky.Bruce@freescale.com>
---
 include/asm-ppc/io.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h
index 00b7ec57e40..7cc28bfe3a2 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);
 }
 
 /*
-- 
GitLab