8
8
9
9
struct pt_regs ;
10
10
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 );
13
13
14
14
/*
15
15
* 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);
66
66
,,(unsigned int)regs->di,,(unsigned int)regs->bp)
67
67
68
68
#define __SYS_STUB0 (abi , name ) \
69
- asmlinkage long __##abi##_##name(const struct pt_regs *regs); \
69
+ long __##abi##_##name(const struct pt_regs *regs); \
70
70
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) \
72
72
__alias(__do_##name);
73
73
74
74
#define __SYS_STUBx (abi , name , ...) \
75
- asmlinkage long __##abi##_##name(const struct pt_regs *regs); \
75
+ long __##abi##_##name(const struct pt_regs *regs); \
76
76
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) \
78
78
{ \
79
79
return __se_##name(__VA_ARGS__); \
80
80
}
81
81
82
82
#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) \
85
84
{ \
86
85
return sys_ni_syscall(); \
87
86
}
@@ -192,11 +191,11 @@ extern asmlinkage long __ia32_sys_ni_syscall(const struct pt_regs *regs);
192
191
* of them.
193
192
*/
194
193
#define COMPAT_SYSCALL_DEFINE0 (name ) \
195
- static asmlinkage long \
194
+ static long \
196
195
__do_compat_sys_##name(const struct pt_regs *__unused); \
197
196
__IA32_COMPAT_SYS_STUB0(name) \
198
197
__X32_COMPAT_SYS_STUB0(name) \
199
- static asmlinkage long \
198
+ static long \
200
199
__do_compat_sys_##name(const struct pt_regs *__unused)
201
200
202
201
#define COMPAT_SYSCALL_DEFINEx (x , name , ...) \
@@ -248,12 +247,10 @@ extern asmlinkage long __ia32_sys_ni_syscall(const struct pt_regs *regs);
248
247
*/
249
248
#define SYSCALL_DEFINE0 (sname ) \
250
249
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); \
253
251
__X64_SYS_STUB0(sname) \
254
252
__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)
257
254
258
255
#define COND_SYSCALL (name ) \
259
256
__X64_COND_SYSCALL(name) \
@@ -268,8 +265,8 @@ extern asmlinkage long __ia32_sys_ni_syscall(const struct pt_regs *regs);
268
265
* For VSYSCALLS, we need to declare these three syscalls with the new
269
266
* pt_regs-based calling convention for in-kernel use.
270
267
*/
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 );
274
271
275
272
#endif /* _ASM_X86_SYSCALL_WRAPPER_H */
0 commit comments