From: Ingo Molnar Date: Tue, 17 Feb 2009 10:47:39 +0000 (+0100) Subject: ftrace: fix !CONFIG_FTRACE [un_]register_ftrace_command() prototypes X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97d0bb8dcd8c2812e1927cdb51d7b1f9c98352b5;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ftrace: fix !CONFIG_FTRACE [un_]register_ftrace_command() prototypes Impact: build fix Signed-off-by: Ingo Molnar --- diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index b331e216d8a1..63281228ce3e 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -238,9 +238,11 @@ extern void ftrace_enable_daemon(void); static inline void ftrace_release(void *start, unsigned long size) { } static inline int register_ftrace_command(struct ftrace_func_command *cmd) { + return -EINVAL; } static inline int unregister_ftrace_command(char *cmd_name) { + return -EINVAL; } #endif /* CONFIG_DYNAMIC_FTRACE */