From: Steven Rostedt Date: Fri, 21 Nov 2008 19:44:57 +0000 (-0500) Subject: trace: fix compiler warning in branch profiler X-Git-Tag: v2.6.29-rc1~586^2~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0429149fb5e01edc410648591c19095d2074ee00;p=pandora-kernel.git 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 Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed