diff options
author | Colin Cross <ccross@android.com> | 2013-10-30 13:17:34 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-11-07 16:25:12 -0800 |
commit | d67a07b6ec961b4e14356d545040769be95ce178 (patch) | |
tree | 2c14d7ba50f819a2c1918b73e154b127d485bd89 | |
parent | 527aae529118f2cbe99c945ffe74be1c04ceaba6 (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>
-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) |