aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 af5ad8949abb..07b2a14943f8 100644
--- a/kernel/trace/ftrace.c
+++ b/kernel/trace/ftrace.c
@@ -177,9 +177,9 @@ static DEFINE_MUTEX(ftrace_filter_lock);
177 177
178struct ftrace_page { 178struct ftrace_page {
179 struct ftrace_page *next; 179 struct ftrace_page *next;
180 int index; 180 unsigned long index;
181 struct dyn_ftrace records[]; 181 struct dyn_ftrace records[];
182} __attribute__((packed)); 182};
183 183
184#define ENTRIES_PER_PAGE \ 184#define ENTRIES_PER_PAGE \
185 ((PAGE_SIZE - sizeof(struct ftrace_page)) / sizeof(struct dyn_ftrace)) 185 ((PAGE_SIZE - sizeof(struct ftrace_page)) / sizeof(struct dyn_ftrace))