summaryrefslogtreecommitdiff
path: root/mm/madvise.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/madvise.c')
-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];