x86, asmlinkage: Make syscall tables visible
authorAndi Kleen <ak@linux.intel.com>
Mon, 5 Aug 2013 22:02:44 +0000 (15:02 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 6 Aug 2013 21:20:18 +0000 (14:20 -0700)
They are referenced from entry*.S.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1375740170-7446-11-git-send-email-andi@firstfloor.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/syscall_32.c
arch/x86/kernel/syscall_64.c

index 147fcd4941c4557f295c7125250d636c0dadda1e..e9bcd57d8a9eb862212351527de3597040e611ba 100644 (file)
@@ -15,7 +15,7 @@ typedef asmlinkage void (*sys_call_ptr_t)(void);
 
 extern asmlinkage void sys_ni_syscall(void);
 
-const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
+__visible 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.
index ec008f5943ac770e61fdfa5d2df58862d2a81630..4ac730b37f0bf4de7ef67fd7f869d9f756e207ed 100644 (file)
@@ -22,7 +22,7 @@
 
 extern void sys_ni_syscall(void);
 
-const sys_call_ptr_t sys_call_table[__NR_syscall_max+1] = {
+asmlinkage 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.