trace: fix compiler warning in branch profiler
authorSteven Rostedt <srostedt@redhat.com>
Fri, 21 Nov 2008 19:44:57 +0000 (14:44 -0500)
committerIngo Molnar <mingo@elte.hu>
Sun, 23 Nov 2008 10:46:49 +0000 (11:46 +0100)
commit0429149fb5e01edc410648591c19095d2074ee00
treed16c0e5b19f1d1409bc653ea12ba17938774ec64
parent2bcd521a684cc94befbe2ce7d5b613c841b0d304
trace: fix compiler warning in branch profiler

Impact: fix compiler warning

The ftrace_pointers used in the branch profiler are constant values.
They should never change. But the compiler complains when they are
passed into the debugfs_create_file as a data pointer, because the
function discards the qualifier.

This patch typecasts the parameter to debugfs_create_file back to
a void pointer. To remind the callbacks that they are pointing to
a constant value, I also modified the callback local pointers to
be const struct ftrace_pointer * as well.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/trace/trace_branch.c