diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-09-28 10:16:12 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-09-28 10:16:12 -0400 |
commit | ef92480a58c3b4dac5eccbc787131a51a3b0a45c (patch) | |
tree | 38cd1f0c4723ed8614922f49fa549debff249330 | |
parent | 6b1032d53cdbda39ad56c8692bac17a66475b57d (diff) |
tracing: Turn seq_print_user_ip() into a static function
seq_print_user_ip() is used in only one location in one file. Turn it into a
static function. We could inject its code into the caller, but that would
make the code a bit too complex. Keep the code separate.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
-rw-r--r-- | kernel/trace/trace_output.c | 4 | ||||
-rw-r--r-- | kernel/trace/trace_output.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c index 881cbdae1913..3b5dcdf19dea 100644 --- a/kernel/trace/trace_output.c +++ b/kernel/trace/trace_output.c | |||
@@ -322,8 +322,8 @@ seq_print_sym_offset(struct trace_seq *s, const char *fmt, | |||
322 | # define IP_FMT "%016lx" | 322 | # define IP_FMT "%016lx" |
323 | #endif | 323 | #endif |
324 | 324 | ||
325 | int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm, | 325 | static int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm, |
326 | unsigned long ip, unsigned long sym_flags) | 326 | unsigned long ip, unsigned long sym_flags) |
327 | { | 327 | { |
328 | struct file *file = NULL; | 328 | struct file *file = NULL; |
329 | unsigned long vmstart = 0; | 329 | unsigned long vmstart = 0; |
diff --git a/kernel/trace/trace_output.h b/kernel/trace/trace_output.h index b774c06cf423..fabc49bcd493 100644 --- a/kernel/trace/trace_output.h +++ b/kernel/trace/trace_output.h | |||
@@ -14,8 +14,6 @@ trace_print_printk_msg_only(struct trace_iterator *iter); | |||
14 | extern int | 14 | extern int |
15 | seq_print_ip_sym(struct trace_seq *s, unsigned long ip, | 15 | seq_print_ip_sym(struct trace_seq *s, unsigned long ip, |
16 | unsigned long sym_flags); | 16 | unsigned long sym_flags); |
17 | extern int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm, | ||
18 | unsigned long ip, unsigned long sym_flags); | ||
19 | 17 | ||
20 | extern int trace_print_context(struct trace_iterator *iter); | 18 | extern int trace_print_context(struct trace_iterator *iter); |
21 | extern int trace_print_lat_context(struct trace_iterator *iter); | 19 | extern int trace_print_lat_context(struct trace_iterator *iter); |