Commit d15ca3203754359cfe5d18910722d3089b204cc4
Committed by
Linus Torvalds
1 parent
145c3ae46b
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 4 additions and 2 deletions Side-by-side Diff
include/asm-generic/syscalls.h
... | ... | @@ -23,8 +23,10 @@ |
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 |