]> git.karo-electronics.de Git - karo-tx-linux.git/commit
m68knommu: make non-MMU page_to_virt() return a void *
authorGreg Ungerer <gerg@uclinux.org>
Mon, 22 Oct 2012 05:29:59 +0000 (15:29 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Mon, 12 Nov 2012 05:25:58 +0000 (15:25 +1000)
commit2c330f8e18b1c71abab7d2ce2eeeecd0a0d6a888
tree3632200c0b90ff7595f3c9d54d1a4490dd5e8f75
parent5572926f75bf255337c9e87f44b09295c98a9b66
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>
arch/m68k/include/asm/page_no.h