]> git.baikalelectronics.ru Git - kernel.git/commit
sh: Fix hugetlbfs dependencies for SH-3 && MMU configurations.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 26 Oct 2009 22:22:37 +0000 (07:22 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 26 Oct 2009 22:22:37 +0000 (07:22 +0900)
commit151b0a708ed9779f7b14850e39cee87a849dc673
treed63a6a36f73536f710cc8e8ce7294ce79f07d53e
parent3c8c0973a90d6389b2d8ba65f20b74eabb6d2d91
sh: Fix hugetlbfs dependencies for SH-3 && MMU configurations.

The hugetlb dependencies presently depend on SUPERH && MMU while the
hugetlb page size definitions depend on CPU_SH4 or CPU_SH5. This
unfortunately allows SH-3 + MMU configurations to enable hugetlbfs
without a corresponding HPAGE_SHIFT definition, resulting in the build
blowing up.

As SH-3 doesn't support variable page sizes, we tighten up the
dependenies a bit to prevent hugetlbfs from being enabled. These days
we also have a shiny new SYS_SUPPORTS_HUGETLBFS, so switch to using
that rather than adding to the list of corner cases in fs/Kconfig.

Reported-by: Kristoffer Ericson <kristoffer.ericson@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/Kconfig
arch/sh/mm/Kconfig
fs/Kconfig