Skip to contentSkip to conversation

MIPS: kernel: proc: Fix typo in proc.c

PATCH In review Tony Wu 2 participants 2 messages Nov 4, 2015 – Nov 10, 2015

Subsystems (2)
lore
Share & tools
lore

Tony Wu

author
#0 lore raw

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.

Cc Markos Chandras <[email protected]>
Cc <[email protected]> # v4.0+
arch/mips/kernel/proc.c +1 -1
index 211fcd4..3417ce0 100644
@@ -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");
#1 lore raw
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 against cpu_has_mips_1, not cpu_has_mips_r1.

Cc Markos Chandras <[email protected]>
Cc <[email protected]> # v4.0+
arch/mips/kernel/proc.c +0 -0
index 211fcd4..3417ce0 100644

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