mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 21:33:00 +01:00
System call prototypes are generally in linux/syscalls.h, but there are a couple of mips specific entry points that are missing there: arch/mips/kernel/signal.c:636:17: error: no previous prototype for 'sys_sigreturn' [-Werror=missing-prototypes] arch/mips/kernel/signal.c:673:17: error: no previous prototype for 'sys_rt_sigreturn' [-Werror=missing-prototypes] arch/mips/kernel/syscall.c:51:16: error: no previous prototype for 'sysm_pipe' [-Werror=missing-prototypes] arch/mips/kernel/mips-mt-fpaff.c:65:17: error: no previous prototype for 'mipsmt_sys_sched_setaffinity' [-Werror=missing-prototypes] arch/mips/kernel/mips-mt-fpaff.c:157:17: error: no previous prototype for 'mipsmt_sys_sched_getaffinity' [-Werror=missing-prototypes] Add these to a new asm/syscalls.h as we have in other architectures. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
#ifndef _ASM_MIPS_SYSCALLS_H
|
|
#define _ASM_MIPS_SYSCALLS_H
|
|
|
|
#include <linux/linkage.h>
|
|
#include <linux/compat.h>
|
|
|
|
asmlinkage void sys_sigreturn(void);
|
|
asmlinkage void sys_rt_sigreturn(void);
|
|
asmlinkage int sysm_pipe(void);
|
|
asmlinkage long mipsmt_sys_sched_setaffinity(pid_t pid, unsigned int len,
|
|
unsigned long __user *user_mask_ptr);
|
|
asmlinkage long mipsmt_sys_sched_getaffinity(pid_t pid, unsigned int len,
|
|
unsigned long __user *user_mask_ptr);
|
|
asmlinkage long sys32_fallocate(int fd, int mode, unsigned offset_a2,
|
|
unsigned offset_a3, unsigned len_a4,
|
|
unsigned len_a5);
|
|
asmlinkage long sys32_fadvise64_64(int fd, int __pad,
|
|
unsigned long a2, unsigned long a3,
|
|
unsigned long a4, unsigned long a5,
|
|
int flags);
|
|
asmlinkage ssize_t sys32_readahead(int fd, u32 pad0, u64 a2, u64 a3,
|
|
size_t count);
|
|
asmlinkage long sys32_sync_file_range(int fd, int __pad,
|
|
unsigned long a2, unsigned long a3,
|
|
unsigned long a4, unsigned long a5,
|
|
int flags);
|
|
asmlinkage void sys32_rt_sigreturn(void);
|
|
asmlinkage void sys32_sigreturn(void);
|
|
asmlinkage int sys32_sigsuspend(compat_sigset_t __user *uset);
|
|
asmlinkage void sysn32_rt_sigreturn(void);
|
|
|
|
#endif
|