Skip to contentSkip to conversation

init/init_task.c spaces required around that '='

PATCH In review wangjingyu 2 participants 2 messages Feb 26, 2021

lore
Share & tools
lore

wangjingyu

author
#0 lore raw

PATCH 1/1 init/init_task.c spaces required around that '='

Ensure checkpatch compliance

---
 init/init_task.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/init_task.c +1 -1
index 15f6eb93a04f..0f995118c6c0 100644
@@ -81,7 +81,7 @@ struct task_struct init_task
 	.policy		= SCHED_NORMAL,
 	.cpus_ptr	= &init_task.cpus_mask,
 	.cpus_mask	= CPU_MASK_ALL,
-	.nr_cpus_allowed= NR_CPUS,
+	.nr_cpus_allowed = NR_CPUS,
 	.mm		= NULL,
 	.active_mm	= &init_mm,
 	.restart_block	= {
Signature · 1 line
2.11.0
#1 lore raw
Quoted 12 lines · wangjingyu

Ensure checkpatch compliance

---
 init/init_task.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
init/init_task.c +0 -0
index 15f6eb93a04f..0f995118c6c0 100644

init/init_task.c struct task_struct init_task · line 84

Quoted 5 lines
init/init_task.c +1 -1
@@ -81,7 +81,7 @@ struct task_struct init_task
 	.policy		= SCHED_NORMAL,
 	.cpus_ptr	= &init_task.cpus_mask,
 	.cpus_mask	= CPU_MASK_ALL,
-	.nr_cpus_allowed= NR_CPUS,
+	.nr_cpus_allowed = NR_CPUS,

Screw checkpatch, this breaks alignment.

Quoted 8 lines
init/init_task.c +0 -0
 	.mm		= NULL,
 	.active_mm	= &init_mm,
 	.restart_block	= {
Signature · 1 line
2.11.0