Skip to content

Commit b5592e5

Browse files
Brian GerstKAGA-KOKO
authored andcommitted
x86/entry: Remove syscall qualifier support
Syscall qualifier support is no longer needed. Signed-off-by: Brian Gerst <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Dominik Brodowski <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent d3b1b77 commit b5592e5

File tree

6 files changed

+14
-22
lines changed

6 files changed

+14
-22
lines changed

arch/x86/entry/syscall_32.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@
99

1010
#ifdef CONFIG_IA32_EMULATION
1111
/* On X86_64, we use struct pt_regs * to pass parameters to syscalls */
12-
#define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
12+
#define __SYSCALL_I386(nr, sym) extern asmlinkage long sym(const struct pt_regs *);
1313
#define __sys_ni_syscall __ia32_sys_ni_syscall
1414
#else /* CONFIG_IA32_EMULATION */
15-
#define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
15+
#define __SYSCALL_I386(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
1616
extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
1717
#define __sys_ni_syscall sys_ni_syscall
1818
#endif /* CONFIG_IA32_EMULATION */
1919

2020
#include <asm/syscalls_32.h>
2121
#undef __SYSCALL_I386
2222

23-
#define __SYSCALL_I386(nr, sym, qual) [nr] = sym,
23+
#define __SYSCALL_I386(nr, sym) [nr] = sym,
2424

2525
__visible const sys_call_ptr_t ia32_sys_call_table[__NR_ia32_syscall_max+1] = {
2626
/*

arch/x86/entry/syscall_64.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
#include <asm/unistd.h>
99
#include <asm/syscall.h>
1010

11-
#define __SYSCALL_X32(nr, sym, qual)
11+
#define __SYSCALL_X32(nr, sym)
1212

13-
#define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
13+
#define __SYSCALL_64(nr, sym) extern asmlinkage long sym(const struct pt_regs *);
1414
#include <asm/syscalls_64.h>
1515
#undef __SYSCALL_64
1616

17-
#define __SYSCALL_64(nr, sym, qual) [nr] = sym,
17+
#define __SYSCALL_64(nr, sym) [nr] = sym,
1818

1919
asmlinkage const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
2020
/*

arch/x86/entry/syscall_x32.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
#include <asm/unistd.h>
99
#include <asm/syscall.h>
1010

11-
#define __SYSCALL_64(nr, sym, qual)
11+
#define __SYSCALL_64(nr, sym)
1212

13-
#define __SYSCALL_X32(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
13+
#define __SYSCALL_X32(nr, sym) extern asmlinkage long sym(const struct pt_regs *);
1414
#include <asm/syscalls_64.h>
1515
#undef __SYSCALL_X32
1616

17-
#define __SYSCALL_X32(nr, sym, qual) [nr] = sym,
17+
#define __SYSCALL_X32(nr, sym) [nr] = sym,
1818

1919
asmlinkage const sys_call_ptr_t x32_sys_call_table[__NR_x32_syscall_max+1] = {
2020
/*

arch/x86/entry/syscalls/syscalltbl.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,7 @@ syscall_macro() {
99
local nr="$2"
1010
local entry="$3"
1111

12-
# Entry can be either just a function name or "function/qualifier"
13-
real_entry="${entry%%/*}"
14-
if [ "$entry" = "$real_entry" ]; then
15-
qualifier=
16-
else
17-
qualifier=${entry#*/}
18-
fi
19-
20-
echo "__SYSCALL_${abi}($nr, $real_entry, $qualifier)"
12+
echo "__SYSCALL_${abi}($nr, $entry)"
2113
}
2214

2315
emit() {

arch/x86/um/sys_call_table_32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626

2727
#define old_mmap sys_old_mmap
2828

29-
#define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
29+
#define __SYSCALL_I386(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
3030
#include <asm/syscalls_32.h>
3131

3232
#undef __SYSCALL_I386
33-
#define __SYSCALL_I386(nr, sym, qual) [ nr ] = sym,
33+
#define __SYSCALL_I386(nr, sym) [ nr ] = sym,
3434

3535
extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
3636

arch/x86/um/sys_call_table_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@
3636
#define stub_execveat sys_execveat
3737
#define stub_rt_sigreturn sys_rt_sigreturn
3838

39-
#define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
39+
#define __SYSCALL_64(nr, sym) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
4040
#include <asm/syscalls_64.h>
4141

4242
#undef __SYSCALL_64
43-
#define __SYSCALL_64(nr, sym, qual) [ nr ] = sym,
43+
#define __SYSCALL_64(nr, sym) [ nr ] = sym,
4444

4545
extern asmlinkage long sys_ni_syscall(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
4646

0 commit comments

Comments
 (0)