瀏覽代碼

ftrace: fix !CONFIG_FTRACE [un_]register_ftrace_command() prototypes

Impact: build fix

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Ingo Molnar 16 年之前
父節點
當前提交
97d0bb8dcd
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      include/linux/ftrace.h

+ 2 - 0
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 */