diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-04 10:47:59 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-03-04 10:47:59 -0500 |
commit | 4b377bab29e6a241db42f27541e7fb63713ee178 (patch) | |
tree | e56ee3359156dd2d01ebd6dac3aaf04cbc311bec /mm | |
parent | 2ae80c43d480548dd32591664c93ef011ac34b21 (diff) |
make do_mremap() static
The extern in sys_sparc_64.c was a rudiment of time when do_mremap()
used to exist in MMU case (it doesn't anymore). As for !MMU one,
nothing uses it outside of mm/nommu.c...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/nommu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index e19328087534..66737e0584ae 100644 --- a/mm/nommu.c +++ b/mm/nommu.c | |||
@@ -1770,7 +1770,7 @@ unsigned long vm_brk(unsigned long addr, unsigned long len) | |||
1770 | * | 1770 | * |
1771 | * MREMAP_FIXED is not supported under NOMMU conditions | 1771 | * MREMAP_FIXED is not supported under NOMMU conditions |
1772 | */ | 1772 | */ |
1773 | unsigned long do_mremap(unsigned long addr, | 1773 | static unsigned long do_mremap(unsigned long addr, |
1774 | unsigned long old_len, unsigned long new_len, | 1774 | unsigned long old_len, unsigned long new_len, |
1775 | unsigned long flags, unsigned long new_addr) | 1775 | unsigned long flags, unsigned long new_addr) |
1776 | { | 1776 | { |
@@ -1805,7 +1805,6 @@ unsigned long do_mremap(unsigned long addr, | |||
1805 | vma->vm_end = vma->vm_start + new_len; | 1805 | vma->vm_end = vma->vm_start + new_len; |
1806 | return vma->vm_start; | 1806 | return vma->vm_start; |
1807 | } | 1807 | } |
1808 | EXPORT_SYMBOL(do_mremap); | ||
1809 | 1808 | ||
1810 | SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, | 1809 | SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len, |
1811 | unsigned long, new_len, unsigned long, flags, | 1810 | unsigned long, new_len, unsigned long, flags, |