tracing: Make unregister_trigger() static

Nothing uses unregister_trigger() outside of trace_events_trigger.c file,
thus it should be static. Not sure why this was ever converted, because
its counter part, register_trigger(), was always static.
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 8bd1369b
...@@ -1533,9 +1533,6 @@ extern int event_trigger_init(struct event_trigger_ops *ops, ...@@ -1533,9 +1533,6 @@ extern int event_trigger_init(struct event_trigger_ops *ops,
extern int trace_event_trigger_enable_disable(struct trace_event_file *file, extern int trace_event_trigger_enable_disable(struct trace_event_file *file,
int trigger_enable); int trigger_enable);
extern void update_cond_flag(struct trace_event_file *file); extern void update_cond_flag(struct trace_event_file *file);
extern void unregister_trigger(char *glob, struct event_trigger_ops *ops,
struct event_trigger_data *test,
struct trace_event_file *file);
extern int set_trigger_filter(char *filter_str, extern int set_trigger_filter(char *filter_str,
struct event_trigger_data *trigger_data, struct event_trigger_data *trigger_data,
struct trace_event_file *file); struct trace_event_file *file);
......
...@@ -579,7 +579,7 @@ static int register_trigger(char *glob, struct event_trigger_ops *ops, ...@@ -579,7 +579,7 @@ static int register_trigger(char *glob, struct event_trigger_ops *ops,
* Usually used directly as the @unreg method in event command * Usually used directly as the @unreg method in event command
* implementations. * implementations.
*/ */
void unregister_trigger(char *glob, struct event_trigger_ops *ops, static void unregister_trigger(char *glob, struct event_trigger_ops *ops,
struct event_trigger_data *test, struct event_trigger_data *test,
struct trace_event_file *file) struct trace_event_file *file)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment