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

Unverified Commit 397182e0 authored by David Abdurachmanov's avatar David Abdurachmanov Committed by Palmer Dabbelt
Browse files

riscv: remove unused variable in ftrace



Noticed while building kernel-4.20.0-0.rc5.git2.1.fc30 for
Fedora 30/RISCV.

[..]
BUILDSTDERR: arch/riscv/kernel/ftrace.c: In function 'prepare_ftrace_return':
BUILDSTDERR: arch/riscv/kernel/ftrace.c:135:6: warning: unused variable 'err' [-Wunused-variable]
BUILDSTDERR:   int err;
BUILDSTDERR:       ^~~
[..]

Signed-off-by: default avatarDavid Abdurachmanov <david.abdurachmanov@gmail.com>
Fixes: e949b6db ("riscv/function_graph: Simplify with function_graph_enter()")
Reviewed-by: default avatarOlof Johansson <olof@lixom.net>
Acked-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: default avatarPalmer Dabbelt <palmer@sifive.com>
parent cd378dbb
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -132,7 +132,6 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr,
{
	unsigned long return_hooker = (unsigned long)&return_to_handler;
	unsigned long old;
	int err;

	if (unlikely(atomic_read(&current->tracing_graph_pause)))
		return;