From: Paul Mundt <lethal@linux-sh.org>
Date: Mon, 11 Jun 2007 06:35:34 +0000 (+0900)
Subject: fs: hugetlbfs: Disable for shnommu.
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dd9505879c3381e98fc46f74cd8c17f0b23d0cd7;p=linux.git

fs: hugetlbfs: Disable for shnommu.

SH can turn CONFIG_MMU on and off, don't let us get to a state
where hugetlbfs/hugetlbpage gets built when building for nommu.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
---

diff --git a/fs/Kconfig b/fs/Kconfig
index 0fa0c1193e813..7f211613ae1b1 100644
--- a/fs/Kconfig
+++ b/fs/Kconfig
@@ -991,7 +991,7 @@ config TMPFS_POSIX_ACL
 
 config HUGETLBFS
 	bool "HugeTLB file system support"
-	depends on X86 || IA64 || PPC64 || SPARC64 || SUPERH || BROKEN
+	depends on X86 || IA64 || PPC64 || SPARC64 || (SUPERH && MMU) || BROKEN
 	help
 	  hugetlbfs is a filesystem backing for HugeTLB pages, based on
 	  ramfs. For architectures that support it, say Y here and read