Skip to content

Commit 962e370

Browse files
JoePerchestorvalds
authored andcommitted
tracing: remove use of seq_printf return value
The seq_printf return value, because it's frequently misused, will eventually be converted to void. See: commit 1f33c41 ("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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 94ff212 commit 962e370

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎kernel/trace/trace_stack.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,11 +327,11 @@ static void t_stop(struct seq_file *m, void *p)
327327
local_irq_enable();
328328
}
329329

330-
static int trace_lookup_stack(struct seq_file *m, long i)
330+
static void trace_lookup_stack(struct seq_file *m, long i)
331331
{
332332
unsigned long addr = stack_dump_trace[i];
333333

334-
return seq_printf(m, "%pS\n", (void *)addr);
334+
seq_printf(m, "%pS\n", (void *)addr);
335335
}
336336

337337
static void print_disabled(struct seq_file *m)

0 commit comments

Comments
 (0)