Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tile: move declaration of sys_call_table to <asm/syscall.h>

When activating syscall tracing, kernel/trace/trace_syscalls.c doesn't
find sys_call_table because it includes <asm/syscall.h>, not
<asm/syscalls.h>. Also, looking at the other architectures, that is
probably where it should be.

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>

authored by

Simon Marchi and committed by
Chris Metcalf
e2ed522a 969f6fe6

+6 -6
+6
arch/tile/include/asm/syscall.h
··· 22 22 #include <linux/err.h> 23 23 #include <arch/abi.h> 24 24 25 + /* The array of function pointers for syscalls. */ 26 + extern void *sys_call_table[]; 27 + #ifdef CONFIG_COMPAT 28 + extern void *compat_sys_call_table[]; 29 + #endif 30 + 25 31 /* 26 32 * Only the low 32 bits of orig_r0 are meaningful, so we return int. 27 33 * This importantly ignores the high bits on 64-bit, so comparisons
-6
arch/tile/include/asm/syscalls.h
··· 24 24 #include <linux/types.h> 25 25 #include <linux/compat.h> 26 26 27 - /* The array of function pointers for syscalls. */ 28 - extern void *sys_call_table[]; 29 - #ifdef CONFIG_COMPAT 30 - extern void *compat_sys_call_table[]; 31 - #endif 32 - 33 27 /* 34 28 * Note that by convention, any syscall which requires the current 35 29 * register set takes an additional "struct pt_regs *" pointer; a