Subject: + mm-constify-nmask-argument-to-set_mempolicy.patch added to -mm tree To: linux@xxxxxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Wed, 30 Apr 2014 13:04:09 -0700 The patch titled Subject: mm: constify nmask argument to set_mempolicy() has been added to the -mm tree. Its filename is mm-constify-nmask-argument-to-set_mempolicy.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-constify-nmask-argument-to-set_mempolicy.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-constify-nmask-argument-to-set_mempolicy.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Rasmus Villemoes <linux@xxxxxxxxxxxxxxxxxx> Subject: 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@xxxxxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/syscalls.h | 2 +- mm/mempolicy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff -puN include/linux/syscalls.h~mm-constify-nmask-argument-to-set_mempolicy include/linux/syscalls.h --- a/include/linux/syscalls.h~mm-constify-nmask-argument-to-set_mempolicy +++ a/include/linux/syscalls.h @@ -711,7 +711,7 @@ asmlinkage long sys_keyctl(int cmd, unsi asmlinkage long sys_ioprio_set(int which, int who, int ioprio); asmlinkage long sys_ioprio_get(int which, int who); -asmlinkage long sys_set_mempolicy(int mode, unsigned long __user *nmask, +asmlinkage long sys_set_mempolicy(int mode, const unsigned long __user *nmask, unsigned long maxnode); asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, const unsigned long __user *from, diff -puN mm/mempolicy.c~mm-constify-nmask-argument-to-set_mempolicy mm/mempolicy.c --- a/mm/mempolicy.c~mm-constify-nmask-argument-to-set_mempolicy +++ a/mm/mempolicy.c @@ -1333,7 +1333,7 @@ SYSCALL_DEFINE6(mbind, unsigned long, st } /* Set the process memory policy */ -SYSCALL_DEFINE3(set_mempolicy, int, mode, unsigned long __user *, nmask, +SYSCALL_DEFINE3(set_mempolicy, int, mode, const unsigned long __user *, nmask, unsigned long, maxnode) { int err; _ Patches currently in -mm which might be from linux@xxxxxxxxxxxxxxxxxx are mm-constify-nmask-argument-to-mbind.patch mm-constify-nmask-argument-to-set_mempolicy.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html