[PATCH] fixes the bug : ntfs build failure in linux-2.6.git on no-mmu
From: Jason Wu
Date: Thu Mar 13 2008 - 02:59:56 EST
This patch fixes the bug : ntfs build failure in linux-2.6.git on no-mmu
Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=10164
Signed-off-by: Jason Wu <wenhsuan121@xxxxxxxxx>
From c7e305005c893cd605be16b010abc42f0b28b210 Mon Sep 17 00:00:00 2001
From: Jason Wu <wenhsuan121@xxxxxxxxx>
Date: Thu, 13 Mar 2008 12:14:20 +0800
Subject: [PATCH] This patch fixes the bug of Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=10164
---
include/linux/mm.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 3f3ccfe..2fa45c4 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -243,6 +243,12 @@ static inline int is_vmalloc_addr(const void *x)
return addr >= VMALLOC_START && addr < VMALLOC_END;
}
+#else
+/* Just return 1 all the time for no-MMU */
+static inline int is_vmalloc_addr(const void *x)
+{
+ return 1;
+}
#endif
static inline struct page *compound_head(struct page *page)
--
1.5.4