xen/arm: mm: Redefine virt_to_mfn to support typesafe
authorJulien Grall <julien.grall@arm.com>
Fri, 30 Jun 2017 15:54:19 +0000 (16:54 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 30 Jun 2017 20:12:55 +0000 (13:12 -0700)
commitd641694ddb304175b7d3d9e5ed7a9a4a40ab2568
treeffb1585852d16e82f935a1a1ebae22d552de2195
parent1127326bd580156503104f8835ff4edf042d3149
xen/arm: mm: Redefine virt_to_mfn to support typesafe

The file xen/arch/arm/mm.c is using the typesafe MFN in most of the
place. This requires all caller of virt_to_mfn to prefixed by _mfn(...).

To avoid the extra _mfn(...), re-defined virt_to_mfn within arch/arm/mm.c
to handle typesafe MFN.

This patch also introduce __virt_to_mfn, so virt_to_mfn can be
re-defined easily.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/mm.c
xen/include/asm-arm/mm.h