[PATCH] NOMMU: Hide vm_mm in NOMMU mode

From: David Howells
Date: Sat Mar 03 2007 - 09:26:50 EST



From: David Howells <dhowells@xxxxxxxxxx>

Hide struct vm_area_struct::vm_mm when in NOMMU mode as this isn't used there.

Signed-Off-By: David Howells <dhowells@xxxxxxxxxx>
---

include/linux/mm.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/mm.h b/include/linux/mm.h
index 60e0e4a..ba394e7 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -58,7 +58,9 @@ extern int sysctl_legacy_va_layout;
* library, the executable area etc).
*/
struct vm_area_struct {
+#ifdef CONFIG_MMU
struct mm_struct * vm_mm; /* The address space we belong to. */
+#endif
unsigned long vm_start; /* Our start address within vm_mm. */
unsigned long vm_end; /* The first byte after our end address
within vm_mm. */
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/