Skip to content

Commit 0f7f544

Browse files
Matthew Wilcox (Oracle)rostedt
authored andcommitted
powerpc: Remove initialisation of readpos
While powerpc doesn't use the seq_buf readpos, it did explicitly initialise it for no good reason. Link: https://lore.kernel.org/linux-trace-kernel/20231024145600.739451-1-willy@infradead.org Cc: Christoph Hellwig <hch@lst.de> Cc: Justin Stitt <justinstitt@google.com> Cc: Kent Overstreet <kent.overstreet@linux.dev> Cc: Petr Mladek <pmladek@suse.com> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Cc: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: Sergey Senozhatsky <senozhatsky@chromium.org> Cc: Michael Ellerman <mpe@ellerman.id.au> Reviewed-by: Kees Cook <keescook@chromium.org> Fixes: d0ed46b ("tracing: Move readpos from seq_buf to trace_seq") Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 545db7e commit 0f7f544

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/powerpc/kernel/setup-common.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,6 @@ struct seq_buf ppc_hw_desc __initdata = {
601601
.buffer = ppc_hw_desc_buf,
602602
.size = sizeof(ppc_hw_desc_buf),
603603
.len = 0,
604-
.readpos = 0,
605604
};
606605

607606
static __init void probe_machine(void)

0 commit comments

Comments
 (0)