According to sparse warning, print_*probe_event static because those functions are not directly called from outside. Link: http://lkml.kernel.org/r/20130513115839.6545.83067.stgit@mhiramat-M0-7522
Showing the changes to kernel (1 of 1 file). Show all
Unified · Split
| @@ -962,7 +962,7 @@ kretprobe_trace_func(struct trace_probe *tp, struct kretprobe_instance *ri, · 961 unmodified lines | ||
| 962 | 962 | } |
| 963 | 963 | |
| 964 | 964 | /* Event entry printers */ |
| 965 | −enum print_line_t | |
| 965 | +static enum print_line_t | |
| 966 | 966 | print_kprobe_event(struct trace_iterator *iter, int flags, |
| 967 | 967 | struct trace_event *event) |
| 968 | 968 | { |
| @@ -998,7 +998,7 @@ partial: · 29 unmodified lines | ||
| 998 | 998 | return TRACE_TYPE_PARTIAL_LINE; |
| 999 | 999 | } |
| 1000 | 1000 | |
| 1001 | −enum print_line_t | |
| 1001 | +static enum print_line_t | |
| 1002 | 1002 | print_kretprobe_event(struct trace_iterator *iter, int flags, |
| 1003 | 1003 | struct trace_event *event) |
| 1004 | 1004 | { |