diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2015-05-14 01:01:54 +0000 |
---|---|---|
committer | Johannes Weiner <hannes@cmpxchg.org> | 2015-05-14 01:01:54 +0000 |
commit | 44a292a754cc0a7ecbe2a886ccbaa6330f4087f5 (patch) | |
tree | 99e8626fa2575bcd4b151ebe38f89e976954840b | |
parent | 71a0fbed16c43a722edcd049c81e1b0d416fbb8c (diff) | |
download | mm-next-44a292a754cc0a7ecbe2a886ccbaa6330f4087f5.tar.gz |
proc-fix-page_size-limit-of-proc-pid-cmdline-fix
fix a billion min() warnings
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
-rw-r--r-- | fs/proc/base.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/proc/base.c b/fs/proc/base.c index 96adcc7d4d899..716ee8bf3fe14 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -197,11 +197,12 @@ static int proc_root_link(struct dentry *dentry, struct path *path) } static ssize_t proc_pid_cmdline_read(struct file *file, char __user *buf, - size_t count, loff_t *pos) + size_t _count, loff_t *pos) { struct task_struct *tsk; struct mm_struct *mm; char *page; + unsigned long count = _count; unsigned long arg_start, arg_end, env_start, env_end; unsigned long len1, len2, len; unsigned long p; |