diff options
author | Colin Cross <ccross@android.com> | 2013-10-30 13:17:34 -0700 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-21 22:35:27 -0500 |
commit | f5ff2ada91306b5d3b5a5f907b8519d3db2b7102 (patch) | |
tree | fdf78f1dd90f1843df884cad39ab1c5bbf2c700a /kernel | |
parent | 3491953e5d66eb47fd3a98e985297222f099acb8 (diff) |
anonymous vma names: fix build with !MMU
Disable PR_SET_VMA when building with !MMU
Change-Id: I896b6979b99aa61df85caf4c3ec22eb8a8204e64
Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sys.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index 3dcf1de0eb74..126b7c939d1f 100644 --- a/kernel/sys.c +++ b/kernel/sys.c @@ -2101,7 +2101,7 @@ static int prctl_get_tid_address(struct task_struct *me, int __user **tid_addr) } #endif - +#ifdef CONFIG_MMU static int prctl_update_vma_anon_name(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end, @@ -2240,6 +2240,13 @@ static int prctl_set_vma(unsigned long opt, unsigned long start, return error; } +#else /* CONFIG_MMU */ +static int prctl_set_vma(unsigned long opt, unsigned long start, + unsigned long len_in, unsigned long arg) +{ + return -EINVAL; +} +#endif SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, unsigned long, arg4, unsigned long, arg5) |