]> git.baikalelectronics.ru Git - kernel.git/commit
s390/mm: avoid using pmd_to_page for !USE_SPLIT_PMD_PTLOCKS
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 7 Jan 2015 10:00:02 +0000 (11:00 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 8 Jan 2015 09:02:18 +0000 (10:02 +0100)
commitddcc51e88856a1566dcb020fa1f4588599afaa3a
treed9d0e6b79fdce720e1ad908bd6911bc7a0d805ea
parente2a756df94bacc50ce83b1c7acfb9cc82d363515
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