Skip to content

Commit

Permalink
tile: move declaration of sys_call_table to <asm/syscall.h>
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Simon Marchi authored and Chris Metcalf committed Mar 21, 2013
1 parent 969f6fe commit e2ed522
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions arch/tile/include/asm/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
#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
Expand Down
6 changes: 0 additions & 6 deletions arch/tile/include/asm/syscalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
#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
Expand Down

0 comments on commit e2ed522

Please sign in to comment.