diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/trace_events.c | 4 | ||||
-rw-r--r-- | kernel/trace/trace_syscalls.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 8079bb511c43..197cdaa96c43 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -27,8 +27,8 @@ DEFINE_MUTEX(event_mutex); | |||
27 | 27 | ||
28 | LIST_HEAD(ftrace_events); | 28 | LIST_HEAD(ftrace_events); |
29 | 29 | ||
30 | int trace_define_field(struct ftrace_event_call *call, char *type, | 30 | int trace_define_field(struct ftrace_event_call *call, const char *type, |
31 | char *name, int offset, int size, int is_signed, | 31 | const char *name, int offset, int size, int is_signed, |
32 | int filter_type) | 32 | int filter_type) |
33 | { | 33 | { |
34 | struct ftrace_event_field *field; | 34 | struct ftrace_event_field *field; |
diff --git a/kernel/trace/trace_syscalls.c b/kernel/trace/trace_syscalls.c index 5931933587e9..a928dd004535 100644 --- a/kernel/trace/trace_syscalls.c +++ b/kernel/trace/trace_syscalls.c | |||
@@ -193,8 +193,8 @@ int syscall_enter_define_fields(struct ftrace_event_call *call) | |||
193 | return ret; | 193 | return ret; |
194 | 194 | ||
195 | for (i = 0; i < meta->nb_args; i++) { | 195 | for (i = 0; i < meta->nb_args; i++) { |
196 | ret = trace_define_field(call, (char *)meta->types[i], | 196 | ret = trace_define_field(call, meta->types[i], |
197 | (char *)meta->args[i], offset, | 197 | meta->args[i], offset, |
198 | sizeof(unsigned long), 0, | 198 | sizeof(unsigned long), 0, |
199 | FILTER_OTHER); | 199 | FILTER_OTHER); |
200 | offset += sizeof(unsigned long); | 200 | offset += sizeof(unsigned long); |