]> git.baikalelectronics.ru Git - kernel.git/commit
kprobes: Use bool type for functions which returns boolean value
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 14 Sep 2021 14:40:16 +0000 (23:40 +0900)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 1 Oct 2021 01:24:06 +0000 (21:24 -0400)
commitc087e97cb5970d26f8f0f0701b8ce9aa2910ed1d
treefb0b48a8735ddeb05cae4a1e305a2d86314efc22
parent524ba5c506427b226cb6a76a210492c89c156399
kprobes: Use bool type for functions which returns boolean value

Use the 'bool' type instead of 'int' for the functions which
returns a boolean value, because this makes clear that those
functions don't return any error code.

Link: https://lkml.kernel.org/r/163163041649.489837.17311187321419747536.stgit@devnote2
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/kprobes.h
kernel/kprobes.c
kernel/trace/trace_kprobe.c