ftrace: fix !CONFIG_FTRACE [un_]register_ftrace_command() prototypes
authorIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 10:47:39 +0000 (11:47 +0100)
committerIngo Molnar <mingo@elte.hu>
Tue, 17 Feb 2009 10:47:39 +0000 (11:47 +0100)
Impact: build fix

Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/ftrace.h

index b331e216d8a1a8fef4cc25725d9d5e35a160fbd4..63281228ce3e10fefd1111371752260b9c85f3f1 100644 (file)
@@ -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 */