diff options
author | Steven Rostedt <srostedt@redhat.com> | 2008-11-21 20:44:57 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-23 11:46:49 +0100 |
commit | 0429149fb5e01edc410648591c19095d2074ee00 (patch) | |
tree | d16c0e5b19f1d1409bc653ea12ba17938774ec64 /arch/um/drivers/slirp_kern.c | |
parent | trace: profile all if conditionals (diff) | |
download | linux-0429149fb5e01edc410648591c19095d2074ee00.tar.xz linux-0429149fb5e01edc410648591c19095d2074ee00.zip |
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>
Diffstat (limited to 'arch/um/drivers/slirp_kern.c')
0 files changed, 0 insertions, 0 deletions