From: Steven Rostedt Date: Sat, 6 Mar 2010 01:02:19 +0000 (-0500) Subject: function-graph: Fix unused reference to ftrace_set_func() X-Git-Tag: v2.6.34-rc2~52^2~5^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=801c29fd1fdeb84f60241beb445ff5db154450ae;p=pandora-kernel.git function-graph: Fix unused reference to ftrace_set_func() The declaration of ftrace_set_func() is at the start of the ftrace.c file and wrapped with a #ifdef CONFIG_FUNCTION_GRAPH condition. If function graph tracing is enabled but CONFIG_DYNAMIC_FTRACE is not, a warning about that function being declared static and unused is given. This really should have been placed within the CONFIG_FUNCTION_GRAPH condition that uses ftrace_set_func(). Moving the declaration down fixes the warning and makes the code cleaner. Reported-by: Peter Zijlstra Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed