MIPS: ftrace: Add missing CONFIG_DYNAMIC_FTRACE
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 10 Jun 2013 10:35:26 +0000 (10:35 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 10 Jun 2013 16:15:18 +0000 (18:15 +0200)
commitcb2f9938d0a57625644750e66373d3bf4d3a1601
treec2d858800c62a3bad1a1f7feadf614b1842f61b0
parentd414976d1ca721456f7b7c603a8699d117c2ec07
MIPS: ftrace: Add missing CONFIG_DYNAMIC_FTRACE

arch_ftrace_update_code and ftrace_modify_all_code are only
available if CONFIG_DYNAMIC_FTRACE is selected.

Fixes the following build problem on MIPS randconfig:

arch/mips/kernel/ftrace.c: In function 'arch_ftrace_update_code':
arch/mips/kernel/ftrace.c:31:2: error: implicit declaration of function
'ftrace_modify_all_code' [-Werror=implicit-function-declaration]

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5435/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ftrace.c