|
@@ -377,6 +377,8 @@ extern int sysctl_max_map_count;
|
|
|
|
|
|
#include <linux/aio.h>
|
|
#include <linux/aio.h>
|
|
|
|
|
|
|
|
+#ifdef CONFIG_MMU
|
|
|
|
+extern void arch_pick_mmap_layout(struct mm_struct *mm);
|
|
extern unsigned long
|
|
extern unsigned long
|
|
arch_get_unmapped_area(struct file *, unsigned long, unsigned long,
|
|
arch_get_unmapped_area(struct file *, unsigned long, unsigned long,
|
|
unsigned long, unsigned long);
|
|
unsigned long, unsigned long);
|
|
@@ -386,6 +388,9 @@ arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr,
|
|
unsigned long flags);
|
|
unsigned long flags);
|
|
extern void arch_unmap_area(struct mm_struct *, unsigned long);
|
|
extern void arch_unmap_area(struct mm_struct *, unsigned long);
|
|
extern void arch_unmap_area_topdown(struct mm_struct *, unsigned long);
|
|
extern void arch_unmap_area_topdown(struct mm_struct *, unsigned long);
|
|
|
|
+#else
|
|
|
|
+static inline void arch_pick_mmap_layout(struct mm_struct *mm) {}
|
|
|
|
+#endif
|
|
|
|
|
|
#if USE_SPLIT_PTLOCKS
|
|
#if USE_SPLIT_PTLOCKS
|
|
/*
|
|
/*
|
|
@@ -2491,8 +2496,6 @@ static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)
|
|
|
|
|
|
#endif /* CONFIG_SMP */
|
|
#endif /* CONFIG_SMP */
|
|
|
|
|
|
-extern void arch_pick_mmap_layout(struct mm_struct *mm);
|
|
|
|
-
|
|
|
|
#ifdef CONFIG_TRACING
|
|
#ifdef CONFIG_TRACING
|
|
extern void
|
|
extern void
|
|
__trace_special(void *__tr, void *__data,
|
|
__trace_special(void *__tr, void *__data,
|