mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 09:31:50 +00:00
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>
This commit is contained in:
parent
8ce71db25e
commit
22e58f9de5
@ -80,7 +80,7 @@ static inline unsigned long ___pa(void *vaddr)
|
||||
: "0" (vaddr), "i" (m68k_fixup_memoffset));
|
||||
return paddr;
|
||||
}
|
||||
#define __pa(vaddr) ___pa((void *)(vaddr))
|
||||
#define __pa(vaddr) ___pa((void *)(long)(vaddr))
|
||||
static inline void *__va(unsigned long paddr)
|
||||
{
|
||||
void *vaddr;
|
||||
|
Loading…
Reference in New Issue
Block a user