mm-constify-nmask-argument-to-set_mempolicy.patch removed from -mm tree
Subsystems (3)
[email protected]
maintainerSubject: [merged] mm-constify-nmask-argument-to-set_mempolicy.patch removed from -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Thu, 05 Jun 2014 12:50:56 -0700
The patch titled
Subject: mm: constify nmask argument to set_mempolicy()
has been removed from the -mm tree. Its filename was
mm-constify-nmask-argument-to-set_mempolicy.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Rasmus Villemoes <[email protected]>
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.
---
include/linux/syscalls.h | 2 +- mm/mempolicy.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
include/linux/syscalls.h renamed from include/linux/syscalls.h~mm-constify-nmask-argument-to-set_mempolicy +1 -1
@@ -711,7 +711,7 @@ asmlinkage long sys_keyctl(int cmd, unsiasmlinkage 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,
mm/mempolicy.c renamed from mm/mempolicy.c~mm-constify-nmask-argument-to-set_mempolicy +1 -1
@@ -1383,7 +1383,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 [email protected] are
origin.patch
linux-next.patch