MIPS: kernel: proc: Fix typo in proc.c
Subsystems (2)
PATCH v2 1/1 MIPS: kernel: proc: Fix typo in proc.c
Fix typo introduced in commit 515a6393dbac ("MIPS: kernel: proc:
Add MIPS R6 support to /proc/cpuinfo"), mips1 should be tested against cpu_has_mips_1, not cpu_has_mips_r1.
Signed-off-by Tony Wu <[email protected]>
Cc Markos Chandras <[email protected]>
Cc <[email protected]> # v4.0+
arch/mips/kernel/proc.c +1 -1
@@ -83,7 +83,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) }seq_printf (m,"isa\t\t\t:" ); -if (cpu_has_mips_r1) +if (cpu_has_mips_1)seq_printf (m," mips1" );if (cpu_has_mips_2)seq_printf (m,"%s" ," mips2" );
Quoted 13 lines · Tony Wu
Fix typo introduced in commit
515a6393dbac("MIPS: kernel: proc:
Add MIPS R6 support to/proc/cpuinfo"), mips1 should be tested againstcpu_has_mips_1, notcpu_has_mips_r1.Signed-off-by Tony Wu <[email protected]>Cc Markos Chandras <[email protected]>Cc <[email protected]> # v4.0+arch/mips/kernel/proc.c +0
-0
arch/mips/kernel/proc.c static int show_cpuinfo(struct seq_file *m, void *v) · line 89
Quoted 8 lines
arch/mips/kernel/proc.c +1
-1@@ -83,7 +83,7 @@ static int show_cpuinfo(struct seq_file *m, void *v) }seq_printf (m,"isa\t\t\t:" ); -if (cpu_has_mips_r1) +if (cpu_has_mips_1)seq_printf (m," mips1" );if (cpu_has_mips_2)seq_printf (m,"%s" ," mips2" );
Applied - but when I applied the patch I got
/home/ralf/src/linux/linux-mips/.git/rebase-apply/patch:8: trailing whitespace.
seq_printf(m, "isa\t\t\t:");
warning: 1 line adds whitespace errors.
which correct but a bit funny because the line git is complaining about isn't even being changed.
Ralf