s390/mm: avoid using pmd_to_page for !USE_SPLIT_PMD_PTLOCKS
commitfbc89c952f004fb9191c23605a1428df6dd39a90
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 7 Jan 2015 10:00:02 +0000 (7 11:00 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 8 Jan 2015 09:02:18 +0000 (8 10:02 +0100)
treed9d0e6b79fdce720e1ad908bd6911bc7a0d805ea
parente38f97813302065fbc9c9eab5c1a94dc021d71e2
s390/mm: avoid using pmd_to_page for !USE_SPLIT_PMD_PTLOCKS

pmd_to_page() is only available if USE_SPLIT_PMD_PTLOCKS is defined.
The use of pmd_to_page in the gmap code can cause compile errors if
NR_CPUS is smaller than SPLIT_PTLOCK_CPUS. Do not use pmd_to_page
outside of USE_SPLIT_PMD_PTLOCKS sections.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/pgtable.c