Skip to contentSkip to conversation

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

PATCH Superseded Tony Wu 3 participants 3 messages Nov 3, 2015 MIPS

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Tony Wu

author
#0 lore raw

PATCH 1/1 MIPS: kernel: proc: Fix typo in proc.c

Fix typo introduced in commit 515a6393 (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]>
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 515a6393 (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]>
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");

Good catch. Might worth adding CC:stable #v4.0+ as well

Signature · 1 line
markos
#2 lore raw
In reply to Tony Wu

Hello.

Quoted 1 line · Tony Wu

Fix typo introduced in commit 515a6393 (MIPS: kernel: proc: Add

Please run the patch scripts/checkpatch.pl -- it now enforces certain
style of the commit citing.

Quoted 5 lines

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]>

MBR, Sergei