diff options
author | Greg Ungerer <gerg@uclinux.org> | 2012-10-22 01:29:59 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2012-12-04 19:51:22 -0500 |
commit | 3c46041769adecf3ed964cbd1e6bd4324d063450 (patch) | |
tree | 931aed6304d6e738a7b10293aa120cccafe5d572 /arch/m68k | |
parent | 5a4acf3eac0631c288b8abb070fdb38c21eaf787 (diff) |
m68knommu: make non-MMU page_to_virt() return a void *
The page_to_virt() macro for m68knommu is currently effectively returning
an int type. But the equivilent m68k macro returns a void * virtual address.
Modify the non-MMU macro to return a void * as well (using the __va macro).
This change will remove compiler warnings in common m68k code that use this
macro.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k')
-rw-r--r-- | arch/m68k/include/asm/page_no.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/m68k/include/asm/page_no.h b/arch/m68k/include/asm/page_no.h index 90595721185f..ef209169579a 100644 --- a/arch/m68k/include/asm/page_no.h +++ b/arch/m68k/include/asm/page_no.h | |||
@@ -26,7 +26,7 @@ extern unsigned long memory_end; | |||
26 | #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT) | 26 | #define pfn_to_virt(pfn) __va((pfn) << PAGE_SHIFT) |
27 | 27 | ||
28 | #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) | 28 | #define virt_to_page(addr) (mem_map + (((unsigned long)(addr)-PAGE_OFFSET) >> PAGE_SHIFT)) |
29 | #define page_to_virt(page) ((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET) | 29 | #define page_to_virt(page) __va(((((page) - mem_map) << PAGE_SHIFT) + PAGE_OFFSET)) |
30 | 30 | ||
31 | #define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn)) | 31 | #define pfn_to_page(pfn) virt_to_page(pfn_to_virt(pfn)) |
32 | #define page_to_pfn(page) virt_to_pfn(page_to_virt(page)) | 32 | #define page_to_pfn(page) virt_to_pfn(page_to_virt(page)) |