tracing: Turn seq_print_user_ip() into a static function
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Mon, 28 Sep 2015 14:16:12 +0000 (10:16 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 28 Sep 2015 14:16:12 +0000 (10:16 -0400)
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>
kernel/trace/trace_output.c
kernel/trace/trace_output.h

index 881cbdae1913b63681830e4a35b309198fba347e..3b5dcdf19dea8c529b6c4e8304d96e1bb12d4582 100644 (file)
@@ -322,8 +322,8 @@ seq_print_sym_offset(struct trace_seq *s, const char *fmt,
 # define IP_FMT "%016lx"
 #endif
 
-int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm,
-                     unsigned long ip, unsigned long sym_flags)
+static int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm,
+                            unsigned long ip, unsigned long sym_flags)
 {
        struct file *file = NULL;
        unsigned long vmstart = 0;
index b774c06cf4237a7c284a4ef1387cbac9aa8c8469..fabc49bcd49398336a0c5397b9a87a58ab85a51d 100644 (file)
@@ -14,8 +14,6 @@ trace_print_printk_msg_only(struct trace_iterator *iter);
 extern int
 seq_print_ip_sym(struct trace_seq *s, unsigned long ip,
                unsigned long sym_flags);
-extern int seq_print_user_ip(struct trace_seq *s, struct mm_struct *mm,
-                            unsigned long ip, unsigned long sym_flags);
 
 extern int trace_print_context(struct trace_iterator *iter);
 extern int trace_print_lat_context(struct trace_iterator *iter);
This page took 0.046004 seconds and 5 git commands to generate.