diff options
author | Yisheng Xie <xieyisheng1@huawei.com> | 2018-02-01 21:14:49 -0500 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2018-07-03 18:33:19 -0400 |
commit | 5ccba64a560fa6ca06008d4001f5d46ebeb34b41 (patch) | |
tree | 277ecfca831457d1422c1651e632a600f2665155 /include/linux/ftrace.h | |
parent | 26b68dd2f48fe7699a89f0cfbb9f4a650dc1c837 (diff) |
ftrace: Nuke clear_ftrace_function
clear_ftrace_function is not used outside of ftrace.c and is not help to
use a function, so nuke it per Steve's suggestion.
Link: http://lkml.kernel.org/r/1517537689-34947-1-git-send-email-xieyisheng1@huawei.com
Suggested-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 8154f4920fcb..ebb77674be90 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -223,7 +223,6 @@ extern enum ftrace_tracing_type_t ftrace_tracing_type; | |||
223 | */ | 223 | */ |
224 | int register_ftrace_function(struct ftrace_ops *ops); | 224 | int register_ftrace_function(struct ftrace_ops *ops); |
225 | int unregister_ftrace_function(struct ftrace_ops *ops); | 225 | int unregister_ftrace_function(struct ftrace_ops *ops); |
226 | void clear_ftrace_function(void); | ||
227 | 226 | ||
228 | extern void ftrace_stub(unsigned long a0, unsigned long a1, | 227 | extern void ftrace_stub(unsigned long a0, unsigned long a1, |
229 | struct ftrace_ops *op, struct pt_regs *regs); | 228 | struct ftrace_ops *op, struct pt_regs *regs); |
@@ -239,7 +238,6 @@ static inline int ftrace_nr_registered_ops(void) | |||
239 | { | 238 | { |
240 | return 0; | 239 | return 0; |
241 | } | 240 | } |
242 | static inline void clear_ftrace_function(void) { } | ||
243 | static inline void ftrace_kill(void) { } | 241 | static inline void ftrace_kill(void) { } |
244 | static inline void ftrace_free_init_mem(void) { } | 242 | static inline void ftrace_free_init_mem(void) { } |
245 | static inline void ftrace_free_mem(struct module *mod, void *start, void *end) { } | 243 | static inline void ftrace_free_mem(struct module *mod, void *start, void *end) { } |