sh: Move the FTRACE_SYSCALL_MAX definition in to asm/ftrace.h.

Needed by ftrace changes in -tip.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Paul Mundt 2009-08-24 22:48:27 +09:00
parent 56fd1260a8
commit f13327864f
2 changed files with 1 additions and 2 deletions

View file

@ -4,6 +4,7 @@
#ifdef CONFIG_FUNCTION_TRACER #ifdef CONFIG_FUNCTION_TRACER
#define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */
#define FTRACE_SYSCALL_MAX (NR_syscalls - 1)
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
extern void mcount(void); extern void mcount(void);

View file

@ -283,8 +283,6 @@ static struct syscall_metadata *find_syscall_meta(unsigned long *syscall)
return NULL; return NULL;
} }
#define FTRACE_SYSCALL_MAX (NR_syscalls - 1)
struct syscall_metadata *syscall_nr_to_meta(int nr) struct syscall_metadata *syscall_nr_to_meta(int nr)
{ {
if (!syscalls_metadata || nr >= FTRACE_SYSCALL_MAX || nr < 0) if (!syscalls_metadata || nr >= FTRACE_SYSCALL_MAX || nr < 0)