diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2013-01-21 19:54:55 -0500 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2013-03-21 15:39:35 -0400 |
commit | e2ed522aaad79db339cecbbc4ae2a0d422ee4c4f (patch) | |
tree | d40243ca92e469ef3e03fce907aae2ebd5a293ff /arch/tile | |
parent | 969f6fe6fc5ecc7a2edcc34f29b7f05fcf982266 (diff) |
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>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/include/asm/syscall.h | 6 | ||||
-rw-r--r-- | arch/tile/include/asm/syscalls.h | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/arch/tile/include/asm/syscall.h b/arch/tile/include/asm/syscall.h index d35e0dcb67b1..9644b88f133d 100644 --- a/arch/tile/include/asm/syscall.h +++ b/arch/tile/include/asm/syscall.h | |||
@@ -22,6 +22,12 @@ | |||
22 | #include <linux/err.h> | 22 | #include <linux/err.h> |
23 | #include <arch/abi.h> | 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 | * Only the low 32 bits of orig_r0 are meaningful, so we return int. | 32 | * Only the low 32 bits of orig_r0 are meaningful, so we return int. |
27 | * This importantly ignores the high bits on 64-bit, so comparisons | 33 | * This importantly ignores the high bits on 64-bit, so comparisons |
diff --git a/arch/tile/include/asm/syscalls.h b/arch/tile/include/asm/syscalls.h index 78886e2417a6..07b298450ef2 100644 --- a/arch/tile/include/asm/syscalls.h +++ b/arch/tile/include/asm/syscalls.h | |||
@@ -24,12 +24,6 @@ | |||
24 | #include <linux/types.h> | 24 | #include <linux/types.h> |
25 | #include <linux/compat.h> | 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 | * Note that by convention, any syscall which requires the current | 28 | * Note that by convention, any syscall which requires the current |
35 | * register set takes an additional "struct pt_regs *" pointer; a | 29 | * register set takes an additional "struct pt_regs *" pointer; a |