From c7e305005c893cd605be16b010abc42f0b28b210 Mon Sep 17 00:00:00 2001 From: Jason Wu 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