You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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>
This commit is contained in:
committed by
Linus Torvalds
parent
7c8e0181e6
commit
f7f28ca98b
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user