Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a9166e3 authored by Luke Yang's avatar Luke Yang Committed by Linus Torvalds
Browse files

[PATCH] Fix undefined symbols for nommu architecture

parent c8b8b1f2
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1051,7 +1051,11 @@ int shrink_slab(unsigned long scanned, gfp_t gfp_mask,
void drop_pagecache(void);
void drop_slab(void);

#ifndef CONFIG_MMU
#define randomize_va_space 0
#else
extern int randomize_va_space;
#endif

#endif /* __KERNEL__ */
#endif /* _LINUX_MM_H */
+2 −0
Original line number Diff line number Diff line
@@ -636,6 +636,7 @@ static ctl_table kern_table[] = {
		.proc_handler	= &proc_dointvec,
	},
#endif
#if defined(CONFIG_MMU)
	{
		.ctl_name	= KERN_RANDOMIZE,
		.procname	= "randomize_va_space",
@@ -644,6 +645,7 @@ static ctl_table kern_table[] = {
		.mode		= 0644,
		.proc_handler	= &proc_dointvec,
	},
#endif
#if defined(CONFIG_S390) && defined(CONFIG_SMP)
	{
		.ctl_name	= KERN_SPIN_RETRY,
+2 −0
Original line number Diff line number Diff line
@@ -57,6 +57,8 @@ EXPORT_SYMBOL(vmalloc);
EXPORT_SYMBOL(vfree);
EXPORT_SYMBOL(vmalloc_to_page);
EXPORT_SYMBOL(vmalloc_32);
EXPORT_SYMBOL(vmap);
EXPORT_SYMBOL(vunmap);

/*
 * Handle all mappings that got truncated by a "truncate()"