Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106139
b: refs/heads/master
c: 16d6926
h: refs/heads/master
i:
  106137: 3288b15
  106135: 6d3db9f
v: v3
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Jul 26, 2008
1 parent 86da00b commit a0b4afd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c7ad106e779549792deb307242dece6f3499bb9
refs/heads/master: 16d69265b930f7e2fa9eea381715696f780718f4
9 changes: 0 additions & 9 deletions trunk/include/linux/sched.h
Original file line number Diff line number Diff line change
Expand Up @@ -2139,16 +2139,7 @@ static inline void set_task_cpu(struct task_struct *p, unsigned int cpu)

#endif /* CONFIG_SMP */

#ifdef HAVE_ARCH_PICK_MMAP_LAYOUT
extern void arch_pick_mmap_layout(struct mm_struct *mm);
#else
static inline void arch_pick_mmap_layout(struct mm_struct *mm)
{
mm->mmap_base = TASK_UNMAPPED_BASE;
mm->get_unmapped_area = arch_get_unmapped_area;
mm->unmap_area = arch_unmap_area;
}
#endif

#ifdef CONFIG_TRACING
extern void
Expand Down
10 changes: 10 additions & 0 deletions trunk/mm/util.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/module.h>
Expand Down Expand Up @@ -136,3 +137,12 @@ char *strndup_user(const char __user *s, long n)
return p;
}
EXPORT_SYMBOL(strndup_user);

#ifndef HAVE_ARCH_PICK_MMAP_LAYOUT
void arch_pick_mmap_layout(struct mm_struct *mm)
{
mm->mmap_base = TASK_UNMAPPED_BASE;
mm->get_unmapped_area = arch_get_unmapped_area;
mm->unmap_area = arch_unmap_area;
}
#endif

0 comments on commit a0b4afd

Please sign in to comment.