mm: export symbol dependencies of is_zero_pfn()
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 12 Sep 2014 20:17:23 +0000 (22:17 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Wed, 8 Oct 2014 09:11:27 +0000 (11:11 +0200)
commitc4673ca7850dae7146ecc35c69e8f17f2337c7d2
treeb84f78bb52deaa7b77f0ee95becd540c94d7b76f
parent63d832d826b75fec2ed062e5a5dc107c5a5db158
mm: export symbol dependencies of is_zero_pfn()

In order to make the static inline function is_zero_pfn() callable by
modules, export its symbol dependencies 'zero_pfn' and (for s390 and
mips) 'zero_page_mask'.

We need this for KVM, as CONFIG_KVM is a tristate for all supported
architectures except ARM and arm64, and testing a pfn whether it refers
to the zero page is required to correctly distinguish the zero page
from other special RAM ranges that may also have the PG_reserved bit
set, but need to be treated as MMIO memory.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 0b70068e47e8f0c813a902dc3d6def601fd15acb)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/mips/mm/init.c
arch/s390/mm/init.c
mm/memory.c