提交 7a9166e3 编写于 作者: L Luke Yang 提交者: Linus Torvalds

[PATCH] Fix undefined symbols for nommu architecture

Signed-off-by: NLuke Yang <luke.adi@gmail.com>
Acked-by: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c8b8b1f2
...@@ -1051,7 +1051,11 @@ int shrink_slab(unsigned long scanned, gfp_t gfp_mask, ...@@ -1051,7 +1051,11 @@ int shrink_slab(unsigned long scanned, gfp_t gfp_mask,
void drop_pagecache(void); void drop_pagecache(void);
void drop_slab(void); void drop_slab(void);
#ifndef CONFIG_MMU
#define randomize_va_space 0
#else
extern int randomize_va_space; extern int randomize_va_space;
#endif
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* _LINUX_MM_H */ #endif /* _LINUX_MM_H */
...@@ -636,6 +636,7 @@ static ctl_table kern_table[] = { ...@@ -636,6 +636,7 @@ static ctl_table kern_table[] = {
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
#endif #endif
#if defined(CONFIG_MMU)
{ {
.ctl_name = KERN_RANDOMIZE, .ctl_name = KERN_RANDOMIZE,
.procname = "randomize_va_space", .procname = "randomize_va_space",
...@@ -644,6 +645,7 @@ static ctl_table kern_table[] = { ...@@ -644,6 +645,7 @@ static ctl_table kern_table[] = {
.mode = 0644, .mode = 0644,
.proc_handler = &proc_dointvec, .proc_handler = &proc_dointvec,
}, },
#endif
#if defined(CONFIG_S390) && defined(CONFIG_SMP) #if defined(CONFIG_S390) && defined(CONFIG_SMP)
{ {
.ctl_name = KERN_SPIN_RETRY, .ctl_name = KERN_SPIN_RETRY,
......
...@@ -57,6 +57,8 @@ EXPORT_SYMBOL(vmalloc); ...@@ -57,6 +57,8 @@ EXPORT_SYMBOL(vmalloc);
EXPORT_SYMBOL(vfree); EXPORT_SYMBOL(vfree);
EXPORT_SYMBOL(vmalloc_to_page); EXPORT_SYMBOL(vmalloc_to_page);
EXPORT_SYMBOL(vmalloc_32); EXPORT_SYMBOL(vmalloc_32);
EXPORT_SYMBOL(vmap);
EXPORT_SYMBOL(vunmap);
/* /*
* Handle all mappings that got truncated by a "truncate()" * Handle all mappings that got truncated by a "truncate()"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册