Re: [PATCH] MIPS: kernel: proc: Use two seq_putc() calls in show_cpuinfo()

Thomas Bogendoerfer <[email protected]> Fri, 17 Jul 2026 13:02:33 +0200
Newsgroups gmane.linux.ports.mips,gmane.linux.kernel,gmane.linux.kernel.janitors
Message-ID <[email protected]>
On Mon, Jun 22, 2026 at 05:57:34PM +0200, Markus Elfring wrote:
> From: Markus Elfring <[email protected]>
> Date: Mon, 22 Jun 2026 17:50:13 +0200
> 
> 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 <[email protected]>
> ---
>  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);
> -- 
> 2.54.0

applied to mips-next

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]