From: David Howells Hide struct vm_area_struct::vm_mm when in NOMMU mode as this isn't used there. Signed-off-by: David Howells Signed-off-by: Andrew Morton --- include/linux/mm.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff -puN include/linux/mm.h~nommu-hide-vm_mm-in-nommu-mode include/linux/mm.h --- a/include/linux/mm.h~nommu-hide-vm_mm-in-nommu-mode +++ a/include/linux/mm.h @@ -58,7 +58,9 @@ extern int sysctl_legacy_va_layout; * library, the executable area etc). */ struct vm_area_struct { - struct mm_struct * vm_mm; /* The address space we belong to. */ +#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. */ _