tile: move declaration of sys_call_table to <asm/syscall.h>
authorSimon Marchi <simon.marchi@polymtl.ca>
Tue, 22 Jan 2013 00:54:55 +0000 (19:54 -0500)
committerChris Metcalf <cmetcalf@tilera.com>
Thu, 21 Mar 2013 19:39:35 +0000 (15:39 -0400)
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>
arch/tile/include/asm/syscall.h
arch/tile/include/asm/syscalls.h

index d35e0dcb67b11a1d2b2a573dc4bc11f1bc14d5bf..9644b88f133da73a0abd5e1d9ce61f64c4ac70cb 100644 (file)
 #include <linux/err.h>
 #include <arch/abi.h>
 
+/* The array of function pointers for syscalls. */
+extern void *sys_call_table[];
+#ifdef CONFIG_COMPAT
+extern void *compat_sys_call_table[];
+#endif
+
 /*
  * Only the low 32 bits of orig_r0 are meaningful, so we return int.
  * This importantly ignores the high bits on 64-bit, so comparisons
index 78886e2417a6a6cc1ef4a2ff28b0e9a5afd96033..07b298450ef2ac9e9b7e8efd4743123c48548fb2 100644 (file)
 #include <linux/types.h>
 #include <linux/compat.h>
 
-/* The array of function pointers for syscalls. */
-extern void *sys_call_table[];
-#ifdef CONFIG_COMPAT
-extern void *compat_sys_call_table[];
-#endif
-
 /*
  * Note that by convention, any syscall which requires the current
  * register set takes an additional "struct pt_regs *" pointer; a
This page took 0.026041 seconds and 5 git commands to generate.