diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 5374ee664ed3..dbf69b7de0de 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -6259,7 +6259,7 @@ void __init ftrace_init(void) } pr_info("ftrace: allocating %ld entries in %ld pages\n", - count, count / ENTRIES_PER_PAGE + 1); + count, DIV_ROUND_UP(count, ENTRIES_PER_PAGE)); last_ftrace_enabled = ftrace_enabled = 1;