Skip to content

Commit 22e58f9

Browse files
akpm00geertu
authored andcommitted
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>
1 parent 8ce71db commit 22e58f9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/m68k/include/asm/page_mm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static inline unsigned long ___pa(void *vaddr)
8080
: "0" (vaddr), "i" (m68k_fixup_memoffset));
8181
return paddr;
8282
}
83-
#define __pa(vaddr) ___pa((void *)(vaddr))
83+
#define __pa(vaddr) ___pa((void *)(long)(vaddr))
8484
static inline void *__va(unsigned long paddr)
8585
{
8686
void *vaddr;

0 commit comments

Comments
 (0)