Skip to content

Commit

Permalink
tracing: remove use of seq_printf return value
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Al Viro <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoePerches authored and torvalds committed Apr 15, 2015
1 parent 94ff212 commit 962e370
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/trace/trace_stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 962e370

Please sign in to comment.