diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2008-07-25 22:44:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-07-26 15:00:01 -0400 |
commit | 16d69265b930f7e2fa9eea381715696f780718f4 (patch) | |
tree | 5b3bf02f5f4fe21da4e9b5e0f22f6518bd81b609 /mm | |
parent | 0c7ad106e779549792deb307242dece6f3499bb9 (diff) |
uninline arch_pick_mmap_layout()
Fix this, on avr32:
include/linux/utsname.h:35,
from init/main.c:20:
include/linux/sched.h: In function 'arch_pick_mmap_layout':
include/linux/sched.h:2149: error: implicit declaration of function 'PAGE_ALIGN'
Reported-by: Adrian Bunk <bunk@kernel.org>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/util.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,4 @@ | |||
1 | #include <linux/mm.h> | ||
1 | #include <linux/slab.h> | 2 | #include <linux/slab.h> |
2 | #include <linux/string.h> | 3 | #include <linux/string.h> |
3 | #include <linux/module.h> | 4 | #include <linux/module.h> |
@@ -136,3 +137,12 @@ char *strndup_user(const char __user *s, long n) | |||
136 | return p; | 137 | return p; |
137 | } | 138 | } |
138 | EXPORT_SYMBOL(strndup_user); | 139 | EXPORT_SYMBOL(strndup_user); |
140 | |||
141 | #ifndef HAVE_ARCH_PICK_MMAP_LAYOUT | ||
142 | void arch_pick_mmap_layout(struct mm_struct *mm) | ||
143 | { | ||
144 | mm->mmap_base = TASK_UNMAPPED_BASE; | ||
145 | mm->get_unmapped_area = arch_get_unmapped_area; | ||
146 | mm->unmap_area = arch_unmap_area; | ||
147 | } | ||
148 | #endif | ||