summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2020-04-30 16:18:21 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2020-05-04 16:47:15 +1000
commit396aef50b467ddf3fa956d7b5ff21d0ed1847840 (patch)
tree9dd27b1ca59fc8b4bec214490a658b363df6a0bc /mm
parentf1703d741f0b72962d0063f1d9529b2947fb8452 (diff)
mm: fix s390 compat build error
Nathan reported build error with sys_compat_process_madvise. This patch should fix it. Link: http://lkml.kernel.org/r/20200429012421.GA132200@google.com Signed-off-by: Minchan Kim <minchan@kernel.org> Reported-by: Nathan Chancellor <natechancellor@gmail.com> Tested-by: Nathan Chancellor <natechancellor@gmail.com> [build] Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'mm')
-rw-r--r--mm/madvise.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mm/madvise.c b/mm/madvise.c
index 2cd4601e01a9..d7f4f1dc6076 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -1311,9 +1311,12 @@ SYSCALL_DEFINE6(process_madvise, int, which, pid_t, upid,
}
#ifdef CONFIG_COMPAT
-COMPAT_SYSCALL_DEFINE6(process_madvise, int, which, compat_pid_t, upid,
- const struct compat_iovec __user *, vec, unsigned long, vlen,
- int, behavior, unsigned long, flags)
+COMPAT_SYSCALL_DEFINE6(process_madvise, compat_int_t, which,
+ compat_pid_t, upid,
+ const struct compat_iovec __user *, vec,
+ compat_ulong_t, vlen,
+ compat_int_t, behavior,
+ compat_ulong_t, flags)
{
ssize_t ret;