* [PATCH] x86/syscalls: deasmlinkage syscall table definition
@ 2020-03-03 20:36 Alexey Dobriyan
0 siblings, 0 replies; only message in thread
From: Alexey Dobriyan @ 2020-03-03 20:36 UTC (permalink / raw)
To: tglx, mingo, bp, hpa, luto; +Cc: linux-kernel, x86
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.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---
arch/x86/entry/syscall_64.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/arch/x86/entry/syscall_64.c
+++ b/arch/x86/entry/syscall_64.c
@@ -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.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-03-03 20:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-03 20:36 [PATCH] x86/syscalls: deasmlinkage syscall table definition Alexey Dobriyan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox