Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f1332786 authored by Paul Mundt's avatar Paul Mundt
Browse files

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



Needed by ftrace changes in -tip.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 56fd1260
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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)