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

Commit 95c2b51a authored by Lorenzo Colitti's avatar Lorenzo Colitti Committed by Jeevan Shriram
Browse files

Fix compiler warning in UML code.

Simply putting (void) in front of the function call does not fix
the warning in GCC. This is working as intended; see:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509#c26

Bug: 21631098
Change-Id: I3aff39752242923dab8b837df2b9ea697316165e
Git-Commit: 4a7f7d46ef4e0ac44dfc86fd8eb69046e1bf43df
Git-repo: https://android.googlesource.com/kernel/msm


[jshriram@codeaurora.org: for compiling UML build]
Signed-off-by: default avatarJeevan Shriram <jshriram@codeaurora.org>
parent e2d07064
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -174,7 +174,8 @@ void syscall_trace_enter(struct pt_regs *regs)
	if (!test_thread_flag(TIF_SYSCALL_TRACE))
		return;

	tracehook_report_syscall_entry(regs);
	/* Avoid "unused result" warning. */
	if (tracehook_report_syscall_entry(regs)) return;
}

void syscall_trace_leave(struct pt_regs *regs)