summaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/ftrace.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-08-24 22:48:27 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-08-24 22:48:27 +0900
commitf13327864f94c3a0e6acca923df537d20059639f (patch)
treef1df9a1c198592de4c63bf5f80319c6526e0582c /arch/sh/kernel/ftrace.c
parent56fd1260a8de3738034588c6e32262960c5b2660 (diff)
downloadblackbird-op-linux-f13327864f94c3a0e6acca923df537d20059639f.tar.gz
blackbird-op-linux-f13327864f94c3a0e6acca923df537d20059639f.zip
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>
Diffstat (limited to 'arch/sh/kernel/ftrace.c')
-rw-r--r--arch/sh/kernel/ftrace.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sh/kernel/ftrace.c b/arch/sh/kernel/ftrace.c
index 6647dfcb781d..a3dcc6d5d253 100644
--- a/arch/sh/kernel/ftrace.c
+++ b/arch/sh/kernel/ftrace.c
@@ -283,8 +283,6 @@ static struct syscall_metadata *find_syscall_meta(unsigned long *syscall)
return NULL;
}
-#define FTRACE_SYSCALL_MAX (NR_syscalls - 1)
-
struct syscall_metadata *syscall_nr_to_meta(int nr)
{
if (!syscalls_metadata || nr >= FTRACE_SYSCALL_MAX || nr < 0)
OpenPOWER on IntegriCloud