Commit 22e58f9d authored by Andrew Morton's avatar Andrew Morton Committed by Geert Uytterhoeven

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 8ce71db2
...@@ -80,7 +80,7 @@ static inline unsigned long ___pa(void *vaddr) ...@@ -80,7 +80,7 @@ static inline unsigned long ___pa(void *vaddr)
: "0" (vaddr), "i" (m68k_fixup_memoffset)); : "0" (vaddr), "i" (m68k_fixup_memoffset));
return paddr; return paddr;
} }
#define __pa(vaddr) ___pa((void *)(vaddr)) #define __pa(vaddr) ___pa((void *)(long)(vaddr))
static inline void *__va(unsigned long paddr) static inline void *__va(unsigned long paddr)
{ {
void *vaddr; void *vaddr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment