Skip to content

Commit

Permalink
sh: Move the FTRACE_SYSCALL_MAX definition in to asm/ftrace.h.
Browse files Browse the repository at this point in the history
Needed by ftrace changes in -tip.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Aug 24, 2009
1 parent 56fd126 commit f133278
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions arch/sh/include/asm/ftrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions arch/sh/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f133278

Please sign in to comment.