ftrace: Make FTRACE_WARN_ON() work in if condition