Explorar o código

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>
Becky Bruce %!s(int64=17) %!d(string=hai) anos
pai
achega
f3612a7b19
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      include/asm-ppc/io.h

+ 1 - 1
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);
 }
 
 /*