lkml.org 
[lkml]   [2008]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] fixes the bug : ntfs build failure in linux-2.6.git on no-mmu
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@gmail.com>
From c7e305005c893cd605be16b010abc42f0b28b210 Mon Sep 17 00:00:00 2001
From: Jason Wu <wenhsuan121@gmail.com>
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
\
 
 \ /
  Last update: 2008-03-13 08:03    [W:0.021 / U:1.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site