浏览代码

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>
Paul Mundt 16 年之前
父节点
当前提交
f13327864f
共有 2 个文件被更改,包括 1 次插入2 次删除
  1. 1 0
      arch/sh/include/asm/ftrace.h
  2. 0 2
      arch/sh/kernel/ftrace.c

+ 1 - 0
arch/sh/include/asm/ftrace.h

@@ -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);

+ 0 - 2
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)