diff options
author | Andrew Morton <akpm@osdl.org> | 2006-03-08 06:55:22 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-08 23:14:00 +0100 |
commit | 7f709ed0e3ccd3e88e0632b69f00174e83f8d98b (patch) | |
tree | 2fc797f06b4ac9177878468a9e59992723ecda5c /mm | |
parent | [PATCH] serial core: work around sub-driver bugs (diff) | |
download | linux-7f709ed0e3ccd3e88e0632b69f00174e83f8d98b.tar.xz linux-7f709ed0e3ccd3e88e0632b69f00174e83f8d98b.zip |
[PATCH] numa_maps-update fix
Fix the mm/mempolicy.c build for !CONFIG_HUGETLB_PAGE.
Cc: Christoph Lameter <clameter@engr.sgi.com>
Cc: Martin Bligh <mbligh@google.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mempolicy.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index d80fa7d8f720..954981b14303 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c @@ -1789,6 +1789,7 @@ static void gather_stats(struct page *page, void *private, int pte_dirty) cond_resched(); } +#ifdef CONFIG_HUGETLB_PAGE static void check_huge_range(struct vm_area_struct *vma, unsigned long start, unsigned long end, struct numa_maps *md) @@ -1814,6 +1815,13 @@ static void check_huge_range(struct vm_area_struct *vma, gather_stats(page, md, pte_dirty(*ptep)); } } +#else +static inline void check_huge_range(struct vm_area_struct *vma, + unsigned long start, unsigned long end, + struct numa_maps *md) +{ +} +#endif int show_numa_map(struct seq_file *m, void *v) { |