aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/ftrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c
index 2f32969c09df..9e54a6ccdb93 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -289,7 +289,7 @@ static DEFINE_MUTEX(ftrace_regex_lock);
289 289
290struct ftrace_page { 290struct ftrace_page {
291 struct ftrace_page *next; 291 struct ftrace_page *next;
292 unsigned long index; 292 int index;
293 struct dyn_ftrace records[]; 293 struct dyn_ftrace records[];
294}; 294};
295 295
@@ -786,7 +786,7 @@ enum {
786 786
787struct ftrace_iterator { 787struct ftrace_iterator {
788 struct ftrace_page *pg; 788 struct ftrace_page *pg;
789 unsigned idx; 789 int idx;
790 unsigned flags; 790 unsigned flags;
791 unsigned char buffer[FTRACE_BUFF_MAX+1]; 791 unsigned char buffer[FTRACE_BUFF_MAX+1];
792 unsigned buffer_idx; 792 unsigned buffer_idx;