summaryrefslogtreecommitdiffstats
path: root/mm/mempolicy.c
diff options
context:
space:
mode:
authorRasmus Villemoes2014-06-05 01:07:57 +0200
committerLinus Torvalds2014-06-05 01:54:03 +0200
commitf7f28ca98b9a7a99fc55df2dddcf49857ab004f0 (patch)
tree42be5cf168124aa24fafe7768a5bba73c059d610 /mm/mempolicy.c
parentmm: replace __get_cpu_var uses with this_cpu_ptr (diff)
downloadkernel-qcow2-linux-f7f28ca98b9a7a99fc55df2dddcf49857ab004f0.tar.gz
kernel-qcow2-linux-f7f28ca98b9a7a99fc55df2dddcf49857ab004f0.tar.xz
kernel-qcow2-linux-f7f28ca98b9a7a99fc55df2dddcf49857ab004f0.zip
mm: constify nmask argument to mbind()
The nmask argument to mbind() is const according to the userspace header numaif.h, and since the kernel does indeed not modify it, it might as well be declared const in the kernel. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Acked-by: Rik van Riel <riel@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mempolicy.c')
-rw-r--r--mm/mempolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index 78e1472933ea..727187f1155b 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -1362,7 +1362,7 @@ static int copy_nodes_to_user(unsigned long __user *mask, unsigned long maxnode,
}
SYSCALL_DEFINE6(mbind, unsigned long, start, unsigned long, len,
- unsigned long, mode, unsigned long __user *, nmask,
+ unsigned long, mode, const unsigned long __user *, nmask,
unsigned long, maxnode, unsigned, flags)
{
nodemask_t nodes;