]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tracing: remove use of seq_printf return value
authorJoe Perches <joe@perches.com>
Tue, 7 Apr 2015 23:45:00 +0000 (09:45 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:45:00 +0000 (09:45 +1000)
The seq_printf return value, because it's frequently misused,
will eventually be converted to void.

See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to
     seq_has_overflowed() and make public")

Miscellanea:

o Remove unused return value from trace_lookup_stack

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/trace/trace_stack.c

index c3e4fcfddd4580f898cda317b326ee4675214ceb..3f34496244e936c876184131d322ea58e597e563 100644 (file)
@@ -327,11 +327,11 @@ static void t_stop(struct seq_file *m, void *p)
        local_irq_enable();
 }
 
-static int trace_lookup_stack(struct seq_file *m, long i)
+static void trace_lookup_stack(struct seq_file *m, long i)
 {
        unsigned long addr = stack_dump_trace[i];
 
-       return seq_printf(m, "%pS\n", (void *)addr);
+       seq_printf(m, "%pS\n", (void *)addr);
 }
 
 static void print_disabled(struct seq_file *m)