aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuke Yang <luke.adi@gmail.com>2006-02-20 21:28:07 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-02-20 23:00:11 -0500
commit7a9166e3b037296366cea6f3c97f705d33e209e6 (patch)
tree275c713bc92309b6f90e5c66699753c0268c6be5
parentc8b8b1f2e0eeb91cca22211950742b5f51564672 (diff)
[PATCH] Fix undefined symbols for nommu architecture
Signed-off-by: Luke Yang <luke.adi@gmail.com> Acked-by: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--include/linux/mm.h4
-rw-r--r--kernel/sysctl.c2
-rw-r--r--mm/nommu.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 26e1663a5cbe..498ff8778fb6 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -1051,7 +1051,11 @@ int shrink_slab(unsigned long scanned, gfp_t gfp_mask,
1051void drop_pagecache(void); 1051void drop_pagecache(void);
1052void drop_slab(void); 1052void drop_slab(void);
1053 1053
1054#ifndef CONFIG_MMU
1055#define randomize_va_space 0
1056#else
1054extern int randomize_va_space; 1057extern int randomize_va_space;
1058#endif
1055 1059
1056#endif /* __KERNEL__ */ 1060#endif /* __KERNEL__ */
1057#endif /* _LINUX_MM_H */ 1061#endif /* _LINUX_MM_H */
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index ebc41bf22f1e..c05a2b7125e1 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -636,6 +636,7 @@ static ctl_table kern_table[] = {
636 .proc_handler = &proc_dointvec, 636 .proc_handler = &proc_dointvec,
637 }, 637 },
638#endif 638#endif
639#if defined(CONFIG_MMU)
639 { 640 {
640 .ctl_name = KERN_RANDOMIZE, 641 .ctl_name = KERN_RANDOMIZE,
641 .procname = "randomize_va_space", 642 .procname = "randomize_va_space",
@@ -644,6 +645,7 @@ static ctl_table kern_table[] = {
644 .mode = 0644, 645 .mode = 0644,
645 .proc_handler = &proc_dointvec, 646 .proc_handler = &proc_dointvec,
646 }, 647 },
648#endif
647#if defined(CONFIG_S390) && defined(CONFIG_SMP) 649#if defined(CONFIG_S390) && defined(CONFIG_SMP)
648 { 650 {
649 .ctl_name = KERN_SPIN_RETRY, 651 .ctl_name = KERN_SPIN_RETRY,
diff --git a/mm/nommu.c b/mm/nommu.c
index c10262d68232..99d21020ec9d 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -57,6 +57,8 @@ EXPORT_SYMBOL(vmalloc);
57EXPORT_SYMBOL(vfree); 57EXPORT_SYMBOL(vfree);
58EXPORT_SYMBOL(vmalloc_to_page); 58EXPORT_SYMBOL(vmalloc_to_page);
59EXPORT_SYMBOL(vmalloc_32); 59EXPORT_SYMBOL(vmalloc_32);
60EXPORT_SYMBOL(vmap);
61EXPORT_SYMBOL(vunmap);
60 62
61/* 63/*
62 * Handle all mappings that got truncated by a "truncate()" 64 * Handle all mappings that got truncated by a "truncate()"