From 8121880ddce74a6761548d797ed34ab8021fe8f1 Mon Sep 17 00:00:00 2001 From: Markus Elfring Date: Mon, 22 Jun 2026 17:50:13 +0200 Subject: [PATCH] MIPS: kernel: proc: Use two seq_putc() calls in show_cpuinfo() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Single line breaks should occasionally be put into a sequence. Thus use the corresponding function “seq_putc”. The source code was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring Signed-off-by: Thomas Bogendoerfer --- arch/mips/kernel/proc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c index 5401c679813a..5f49fd4653a7 100644 --- a/arch/mips/kernel/proc.c +++ b/arch/mips/kernel/proc.c @@ -109,7 +109,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) seq_puts(m, " mips64r5"); if (cpu_has_mips64r6) seq_puts(m, " mips64r6"); - seq_puts(m, "\n"); + seq_putc(m, '\n'); seq_puts(m, "ASEs implemented\t:"); if (cpu_has_mips16) @@ -273,7 +273,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) seq_puts(m, " mm_sysad"); if (cpu_has_mm_full) seq_puts(m, " mm_full"); - seq_puts(m, "\n"); + seq_putc(m, '\n'); seq_printf(m, "shadow register sets\t: %d\n", cpu_data[n].srsets);