Skip to contentSkip to conversation

x86/syscalls: deasmlinkage syscall table definition

PATCH New Alexey Dobriyan 1 participant 1 message Mar 3, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/syscalls: deasmlinkage syscall table definition

I think that "sys_call_ptr_t" type being function pointer to asmlinkage function is enough, array itself doesn't need to be asmlinkage.

It is not referenced by assembly code anymore anyway.

---

 arch/x86/entry/syscall_64.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/x86/entry/syscall_64.c +2 -2
@@ -24,7 +24,7 @@ SYSCALL_DEFINE0(ni_syscall)
 #define __SYSCALL_64(nr, sym, qual) [nr] = sym,
 #define __SYSCALL_X32(nr, sym, qual)
 
-asmlinkage const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
+const sys_call_ptr_t sys_call_table[__NR_syscall_max + 1] = {
 	/*
 	 * Smells like a compiler bug -- it doesn't work
 	 * when the & below is removed.
@@ -41,7 +41,7 @@ asmlinkage const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
 #define __SYSCALL_64(nr, sym, qual)
 #define __SYSCALL_X32(nr, sym, qual) [nr] = sym,
 
-asmlinkage const sys_call_ptr_t x32_sys_call_table[__NR_syscall_x32_max+1] = {
+const sys_call_ptr_t x32_sys_call_table[__NR_syscall_x32_max + 1] = {
 	/*
 	 * Smells like a compiler bug -- it doesn't work
 	 * when the & below is removed.