From: Steven Rostedt Date: Wed, 6 Jun 2012 17:45:31 +0000 (-0400) Subject: ftrace: Make ftrace_location() a nop on !DYNAMIC_FTRACE X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~97^2~32^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4dc936769e8a6382a4cc12375e8a4daa2b829fda;p=pandora-kernel.git ftrace: Make ftrace_location() a nop on !DYNAMIC_FTRACE When CONFIG_DYNAMIC_FTRACE is not set, ftrace_location() is not defined. If a user (like kprobes) references this function, it will break the compile when CONFIG_DYNAMIC_FTRACE is not set. Add ftrace_location() as a nop (return 0) when DYNAMIC_FTRACE is not defined. Link: http://lkml.kernel.org/r/20120612225426.961092717@goodmis.org Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed