mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-27 20:35:12 +07:00
c788732523
Mark arguments to certain system calls as being const where they should be but aren't. The list includes: (*) The filename arguments of various stat syscalls, execve(), various utimes syscalls and some mount syscalls. (*) The filename arguments of some syscall helpers relating to the above. (*) The buffer argument of various write syscalls. Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: David S. Miller <davem@davemloft.net> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
#ifndef __ASM_SH_SYSCALLS_64_H
|
|
#define __ASM_SH_SYSCALLS_64_H
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#include <linux/compiler.h>
|
|
#include <linux/linkage.h>
|
|
#include <linux/types.h>
|
|
|
|
struct pt_regs;
|
|
|
|
asmlinkage int sys_fork(unsigned long r2, unsigned long r3,
|
|
unsigned long r4, unsigned long r5,
|
|
unsigned long r6, unsigned long r7,
|
|
struct pt_regs *pregs);
|
|
asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp,
|
|
unsigned long r4, unsigned long r5,
|
|
unsigned long r6, unsigned long r7,
|
|
struct pt_regs *pregs);
|
|
asmlinkage int sys_vfork(unsigned long r2, unsigned long r3,
|
|
unsigned long r4, unsigned long r5,
|
|
unsigned long r6, unsigned long r7,
|
|
struct pt_regs *pregs);
|
|
asmlinkage int sys_execve(const char *ufilename, char **uargv,
|
|
char **uenvp, unsigned long r5,
|
|
unsigned long r6, unsigned long r7,
|
|
struct pt_regs *pregs);
|
|
|
|
/* Misc syscall related bits */
|
|
asmlinkage long long do_syscall_trace_enter(struct pt_regs *regs);
|
|
asmlinkage void do_syscall_trace_leave(struct pt_regs *regs);
|
|
|
|
#endif /* __KERNEL__ */
|
|
#endif /* __ASM_SH_SYSCALLS_64_H */
|