diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2014-06-04 19:07:58 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-04 19:54:03 -0400 |
commit | 23c8902d403ef9a04cdc367d0b76a3ed6d83f5c5 (patch) | |
tree | 060556fb56a1357f2d0a9cc017c6d15327488545 /include/linux/syscalls.h | |
parent | f7f28ca98b9a7a99fc55df2dddcf49857ab004f0 (diff) |
mm: constify nmask argument to set_mempolicy()
The nmask argument to set_mempolicy() is const according to the user-space
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/syscalls.h')
-rw-r--r-- | include/linux/syscalls.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h index bfef0be279dd..b0881a0ed322 100644 --- a/include/linux/syscalls.h +++ b/include/linux/syscalls.h | |||
@@ -711,7 +711,7 @@ asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3, | |||
711 | 711 | ||
712 | asmlinkage long sys_ioprio_set(int which, int who, int ioprio); | 712 | asmlinkage long sys_ioprio_set(int which, int who, int ioprio); |
713 | asmlinkage long sys_ioprio_get(int which, int who); | 713 | asmlinkage long sys_ioprio_get(int which, int who); |
714 | asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask, | 714 | asmlinkage long sys_set_mempolicy(int mode, const unsigned long __user *nmask, |
715 | unsigned long maxnode); | 715 | unsigned long maxnode); |
716 | asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, | 716 | asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, |
717 | const unsigned long __user *from, | 717 | const unsigned long __user *from, |