88
99struct pt_regs ;
1010
11- extern asmlinkage long __x64_sys_ni_syscall (const struct pt_regs * regs );
12- extern asmlinkage long __ia32_sys_ni_syscall (const struct pt_regs * regs );
11+ extern long __x64_sys_ni_syscall (const struct pt_regs * regs );
12+ extern long __ia32_sys_ni_syscall (const struct pt_regs * regs );
1313
1414/*
1515 * Instead of the generic __SYSCALL_DEFINEx() definition, the x86 version takes
@@ -66,22 +66,21 @@ extern asmlinkage long __ia32_sys_ni_syscall(const struct pt_regs *regs);
6666 ,,(unsigned int)regs->di,,(unsigned int)regs->bp)
6767
6868#define __SYS_STUB0 (abi , name ) \
69- asmlinkage long __##abi##_##name(const struct pt_regs *regs); \
69+ long __##abi##_##name(const struct pt_regs *regs); \
7070 ALLOW_ERROR_INJECTION(__##abi##_##name, ERRNO); \
71- asmlinkage long __##abi##_##name(const struct pt_regs *regs) \
71+ long __##abi##_##name(const struct pt_regs *regs) \
7272 __alias(__do_##name);
7373
7474#define __SYS_STUBx (abi , name , ...) \
75- asmlinkage long __##abi##_##name(const struct pt_regs *regs); \
75+ long __##abi##_##name(const struct pt_regs *regs); \
7676 ALLOW_ERROR_INJECTION(__##abi##_##name, ERRNO); \
77- asmlinkage long __##abi##_##name(const struct pt_regs *regs) \
77+ long __##abi##_##name(const struct pt_regs *regs) \
7878 { \
7979 return __se_##name(__VA_ARGS__); \
8080 }
8181
8282#define __COND_SYSCALL (abi , name ) \
83- asmlinkage __weak long \
84- __##abi##_##name(const struct pt_regs *__unused) \
83+ __weak long __##abi##_##name(const struct pt_regs *__unused) \
8584 { \
8685 return sys_ni_syscall(); \
8786 }
@@ -192,11 +191,11 @@ extern asmlinkage long __ia32_sys_ni_syscall(const struct pt_regs *regs);
192191 * of them.
193192 */
194193#define COMPAT_SYSCALL_DEFINE0 (name ) \
195- static asmlinkage long \
194+ static long \
196195 __do_compat_sys_##name(const struct pt_regs *__unused); \
197196 __IA32_COMPAT_SYS_STUB0(name) \
198197 __X32_COMPAT_SYS_STUB0(name) \
199- static asmlinkage long \
198+ static long \
200199 __do_compat_sys_##name(const struct pt_regs *__unused)
201200
202201#define COMPAT_SYSCALL_DEFINEx (x , name , ...) \
@@ -248,12 +247,10 @@ extern asmlinkage long __ia32_sys_ni_syscall(const struct pt_regs *regs);
248247 */
249248#define SYSCALL_DEFINE0 (sname ) \
250249 SYSCALL_METADATA(_##sname, 0); \
251- static asmlinkage long \
252- __do_sys_##sname(const struct pt_regs *__unused); \
250+ static long __do_sys_##sname(const struct pt_regs *__unused); \
253251 __X64_SYS_STUB0(sname) \
254252 __IA32_SYS_STUB0(sname) \
255- static asmlinkage long \
256- __do_sys_##sname(const struct pt_regs *__unused)
253+ static long __do_sys_##sname(const struct pt_regs *__unused)
257254
258255#define COND_SYSCALL (name ) \
259256 __X64_COND_SYSCALL(name) \
@@ -268,8 +265,8 @@ extern asmlinkage long __ia32_sys_ni_syscall(const struct pt_regs *regs);
268265 * For VSYSCALLS, we need to declare these three syscalls with the new
269266 * pt_regs-based calling convention for in-kernel use.
270267 */
271- asmlinkage long __x64_sys_getcpu (const struct pt_regs * regs );
272- asmlinkage long __x64_sys_gettimeofday (const struct pt_regs * regs );
273- asmlinkage long __x64_sys_time (const struct pt_regs * regs );
268+ long __x64_sys_getcpu (const struct pt_regs * regs );
269+ long __x64_sys_gettimeofday (const struct pt_regs * regs );
270+ long __x64_sys_time (const struct pt_regs * regs );
274271
275272#endif /* _ASM_X86_SYSCALL_WRAPPER_H */
0 commit comments