Skip to content

Commit 01fde9a

Browse files
lipnitsktsbogend
authored andcommitted
MIPS: kernel: proc: fix trivial style errors
Fix the following checkpatch errors - no logic changes: WARNING: Block comments use a trailing */ on a separate line + * */ ERROR: space prohibited before open square bracket '[' + char fmt [64]; ERROR: space prohibited before that ',' (ctx:WxE) + seq_printf(m, "%s0x%04x", i ? ", " : "" , ERROR: trailing whitespace +^Iseq_printf(m, "isa\t\t\t:"); $ ERROR: trailing statements should be on next line Signed-off-by: Ilya Lipnitskiy <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent a923a26 commit 01fde9a

File tree

1 file changed

+43
-24
lines changed

1 file changed

+43
-24
lines changed

arch/mips/kernel/proc.c

Lines changed: 43 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
unsigned int vced_count, vcei_count;
2020

2121
/*
22-
* * No lock; only written during early bootup by CPU 0.
23-
* */
22+
* No lock; only written during early bootup by CPU 0.
23+
*/
2424
static RAW_NOTIFIER_HEAD(proc_cpuinfo_chain);
2525

2626
int __ref register_proc_cpuinfo_notifier(struct notifier_block *nb)
@@ -39,7 +39,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
3939
unsigned long n = (unsigned long) v - 1;
4040
unsigned int version = cpu_data[n].processor_id;
4141
unsigned int fp_vers = cpu_data[n].fpu_id;
42-
char fmt [64];
42+
char fmt[64];
4343
int i;
4444

4545
#ifdef CONFIG_SMP
@@ -78,12 +78,12 @@ static int show_cpuinfo(struct seq_file *m, void *v)
7878
seq_printf(m, "count: %d, address/irw mask: [",
7979
cpu_data[n].watch_reg_count);
8080
for (i = 0; i < cpu_data[n].watch_reg_count; i++)
81-
seq_printf(m, "%s0x%04x", i ? ", " : "" ,
81+
seq_printf(m, "%s0x%04x", i ? ", " : "",
8282
cpu_data[n].watch_reg_masks[i]);
8383
seq_printf(m, "]\n");
8484
}
8585

86-
seq_printf(m, "isa\t\t\t:");
86+
seq_printf(m, "isa\t\t\t:");
8787
if (cpu_has_mips_1)
8888
seq_printf(m, " mips1");
8989
if (cpu_has_mips_2)
@@ -113,25 +113,44 @@ static int show_cpuinfo(struct seq_file *m, void *v)
113113
seq_printf(m, "\n");
114114

115115
seq_printf(m, "ASEs implemented\t:");
116-
if (cpu_has_mips16) seq_printf(m, "%s", " mips16");
117-
if (cpu_has_mips16e2) seq_printf(m, "%s", " mips16e2");
118-
if (cpu_has_mdmx) seq_printf(m, "%s", " mdmx");
119-
if (cpu_has_mips3d) seq_printf(m, "%s", " mips3d");
120-
if (cpu_has_smartmips) seq_printf(m, "%s", " smartmips");
121-
if (cpu_has_dsp) seq_printf(m, "%s", " dsp");
122-
if (cpu_has_dsp2) seq_printf(m, "%s", " dsp2");
123-
if (cpu_has_dsp3) seq_printf(m, "%s", " dsp3");
124-
if (cpu_has_mipsmt) seq_printf(m, "%s", " mt");
125-
if (cpu_has_mmips) seq_printf(m, "%s", " micromips");
126-
if (cpu_has_vz) seq_printf(m, "%s", " vz");
127-
if (cpu_has_msa) seq_printf(m, "%s", " msa");
128-
if (cpu_has_eva) seq_printf(m, "%s", " eva");
129-
if (cpu_has_htw) seq_printf(m, "%s", " htw");
130-
if (cpu_has_xpa) seq_printf(m, "%s", " xpa");
131-
if (cpu_has_loongson_mmi) seq_printf(m, "%s", " loongson-mmi");
132-
if (cpu_has_loongson_cam) seq_printf(m, "%s", " loongson-cam");
133-
if (cpu_has_loongson_ext) seq_printf(m, "%s", " loongson-ext");
134-
if (cpu_has_loongson_ext2) seq_printf(m, "%s", " loongson-ext2");
116+
if (cpu_has_mips16)
117+
seq_printf(m, "%s", " mips16");
118+
if (cpu_has_mips16e2)
119+
seq_printf(m, "%s", " mips16e2");
120+
if (cpu_has_mdmx)
121+
seq_printf(m, "%s", " mdmx");
122+
if (cpu_has_mips3d)
123+
seq_printf(m, "%s", " mips3d");
124+
if (cpu_has_smartmips)
125+
seq_printf(m, "%s", " smartmips");
126+
if (cpu_has_dsp)
127+
seq_printf(m, "%s", " dsp");
128+
if (cpu_has_dsp2)
129+
seq_printf(m, "%s", " dsp2");
130+
if (cpu_has_dsp3)
131+
seq_printf(m, "%s", " dsp3");
132+
if (cpu_has_mipsmt)
133+
seq_printf(m, "%s", " mt");
134+
if (cpu_has_mmips)
135+
seq_printf(m, "%s", " micromips");
136+
if (cpu_has_vz)
137+
seq_printf(m, "%s", " vz");
138+
if (cpu_has_msa)
139+
seq_printf(m, "%s", " msa");
140+
if (cpu_has_eva)
141+
seq_printf(m, "%s", " eva");
142+
if (cpu_has_htw)
143+
seq_printf(m, "%s", " htw");
144+
if (cpu_has_xpa)
145+
seq_printf(m, "%s", " xpa");
146+
if (cpu_has_loongson_mmi)
147+
seq_printf(m, "%s", " loongson-mmi");
148+
if (cpu_has_loongson_cam)
149+
seq_printf(m, "%s", " loongson-cam");
150+
if (cpu_has_loongson_ext)
151+
seq_printf(m, "%s", " loongson-ext");
152+
if (cpu_has_loongson_ext2)
153+
seq_printf(m, "%s", " loongson-ext2");
135154
seq_printf(m, "\n");
136155

137156
if (cpu_has_mmips) {

0 commit comments

Comments
 (0)