aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2010-10-02 13:32:41 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2010-10-22 03:43:25 -0400
commit22e58f9de5d140116eb3a30d5e54396e3030bed2 (patch)
tree2e3c7872075aa3b60e5f473ea4cc70f899ee008f
parent8ce71db25edccde4d8e3e39bffb4178bf1018ef1 (diff)
m68k: __pa(): cast arg to long
Fixes this: drivers/char/mem.c: In function 'mmap_kmem': drivers/char/mem.c:342: warning: cast to pointer from integer of different size by doing what other archtiectures do. Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
-rw-r--r--arch/m68k/include/asm/page_mm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/page_mm.h b/arch/m68k/include/asm/page_mm.h
index 66f0b3938cbb..31d5570d6567 100644
--- a/arch/m68k/include/asm/page_mm.h
+++ b/arch/m68k/include/asm/page_mm.h
@@ -80,7 +80,7 @@ static inline unsigned long ___pa(void *vaddr)
80 : "0" (vaddr), "i" (m68k_fixup_memoffset)); 80 : "0" (vaddr), "i" (m68k_fixup_memoffset));
81 return paddr; 81 return paddr;
82} 82}
83#define __pa(vaddr) ___pa((void *)(vaddr)) 83#define __pa(vaddr) ___pa((void *)(long)(vaddr))
84static inline void *__va(unsigned long paddr) 84static inline void *__va(unsigned long paddr)
85{ 85{
86 void *vaddr; 86 void *vaddr;