summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorMinchan Kim <minchan@kernel.org>2020-09-05 14:10:19 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2020-09-10 16:51:54 +1000
commit1c54d15bf8bfc3d0b3b51bbc7a83e7c1e77697b0 (patch)
tree7a48eb76c499ce162e0c0e1f98bd95f84519b8c1 /mm
parentacb805591dceba3e74cb054511e7483803f23f0c (diff)
downloadlinux-next-1c54d15bf8bfc3d0b3b51bbc7a83e7c1e77697b0.tar.gz
mm-madvise-introduce-process_madvise-syscall-an-external-memory-hinting-api-fix
make process_madvise() vlen arg have type size_t, per Florian Cc: Minchan Kim <minchan@kernel.org> Cc: Florian Weimer <fw@deneb.enyo.de> 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/madvise.c b/mm/madvise.c
index 254108b5ac47..26e0ba5368e4 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -1225,7 +1225,7 @@ put_pid:
return ret;
}
-static inline int madv_import_iovec(int type, const struct iovec __user *uvec, unsigned int nr_segs,
+static inline int madv_import_iovec(int type, const struct iovec __user *uvec, size_t nr_segs,
unsigned int fast_segs, struct iovec **iov, struct iov_iter *i)
{
#ifdef CONFIG_COMPAT
@@ -1238,7 +1238,7 @@ static inline int madv_import_iovec(int type, const struct iovec __user *uvec, u
}
SYSCALL_DEFINE5(process_madvise, int, pidfd, const struct iovec __user *, vec,
- unsigned long, vlen, int, behavior, unsigned int, flags)
+ size_t, vlen, int, behavior, unsigned int, flags)
{
ssize_t ret;
struct iovec iovstack[UIO_FASTIOV];