ftrace: fix build problem with CONFIG_FTRACE