Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Fix the declaration of sys_execve() in asm-generic/syscalls.h

Fix the declaration of sys_execve() in asm-generic/syscalls.h to have
various consts applied to its pointers.

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

David Howells and committed by
Linus Torvalds
d15ca320 145c3ae4

+4 -2
+4 -2
include/asm-generic/syscalls.h
··· 23 23 #endif 24 24 25 25 #ifndef sys_execve 26 - asmlinkage long sys_execve(char __user *filename, char __user * __user *argv, 27 - char __user * __user *envp, struct pt_regs *regs); 26 + asmlinkage long sys_execve(const char __user *filename, 27 + const char __user *const __user *argv, 28 + const char __user *const __user *envp, 29 + struct pt_regs *regs); 28 30 #endif 29 31 30 32 #ifndef sys_mmap2