Use bool instead of int for kretprobe checker. Link: http://lkml.kernel.org/r/20130509054431.30398.38561.stgit@mhiramat-M0-7522
Unified · Split
| @@ -46,7 +46,7 @@ struct trace_probe { · 45 unmodified lines | |||
| 46 | (sizeof(struct probe_arg) * (n))) | 46 | (sizeof(struct probe_arg) * (n))) |
| 47 | 47 | ||
| 48 | 48 | ||
| 49 | static __kprobes int trace_probe_is_return(struct trace_probe *tp) | 49 | static __kprobes bool trace_probe_is_return(struct trace_probe *tp) |
| 50 | { | 50 | { |
| 51 | return tp->rp.handler != NULL; | 51 | return tp->rp.handler != NULL; |
| 52 | } | 52 | } |