x86/kprobes: Refactor can_{probe,boost} return type to bool
authorJinghao Jia <jinghao7@illinois.edu>
Wed, 6 Mar 2024 15:26:01 +0000 (00:26 +0900)
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>
Wed, 6 Mar 2024 15:26:01 +0000 (00:26 +0900)
commite4778a0ef322834718f8e42da3901eb99fef1208
tree1a163496c7bd7bfebfa5a332cf4aa38953aa3b70
parent90d35da658da8cff0d4ecbb5113f5fac9d00eb72
x86/kprobes: Refactor can_{probe,boost} return type to bool

Both can_probe and can_boost have int return type but are using int as
boolean in their context.

Refactor both functions to make them actually return boolean.

Link: https://lore.kernel.org/all/20240204031300.830475-2-jinghao7@illinois.edu/
Signed-off-by: Jinghao Jia <jinghao7@illinois.edu>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
arch/x86/kernel/kprobes/common.h
arch/x86/kernel/kprobes/core.c