]> git.karo-electronics.de Git - linux-beck.git/commitdiff
sh: Move the FTRACE_SYSCALL_MAX definition in to asm/ftrace.h.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 24 Aug 2009 13:48:27 +0000 (22:48 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Aug 2009 13:48:27 +0000 (22:48 +0900)
Needed by ftrace changes in -tip.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/ftrace.h
arch/sh/kernel/ftrace.c

index 7e0bcc4d4a96e88d8ac9ce9e49b8ac8bca3791eb..3c2ede3690d74877465c3564633a0f0cfb05df0d 100644 (file)
@@ -4,6 +4,7 @@
 #ifdef CONFIG_FUNCTION_TRACER
 
 #define MCOUNT_INSN_SIZE       4 /* sizeof mcount call */
+#define FTRACE_SYSCALL_MAX     (NR_syscalls - 1)
 
 #ifndef __ASSEMBLY__
 extern void mcount(void);
index 6647dfcb781d4c07a117fd5cb4114327a3038267..a3dcc6d5d25332d9ec52046cd7c68c735abf334b 100644 (file)
@@ -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)