• Steven Rostedt's avatar
    trace: fix compiler warning in branch profiler · 0429149f
    Steven Rostedt authored
    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: default avatarSteven Rostedt <srostedt@redhat.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    0429149f
trace_branch.c 7.28 KB