init: init_task.c: fixed two spaces coding style issue
PATCH 1/1 init: init_task.c: fixed two spaces coding style issue
Fixed two spaces coding style issue.
Signed-off-by Javier Contreras <[email protected]>
--- init/init_task.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)
init/init_task.c +15 -15
@@ -71,24 +71,24 @@ struct task_struct init_task .thread_info = INIT_THREAD_INFO(init_task), .stack_refcount = REFCOUNT_INIT(1), #endif - .state = 0, - .stack = init_stack, - .usage = REFCOUNT_INIT(2), - .flags = PF_KTHREAD, - .prio = MAX_PRIO - 20, - .static_prio = MAX_PRIO - 20, - .normal_prio = MAX_PRIO - 20, - .policy = SCHED_NORMAL, - .cpus_ptr = &init_task.cpus_mask, - .cpus_mask = CPU_MASK_ALL, - .nr_cpus_allowed= NR_CPUS, - .mm = NULL, - .active_mm = &init_mm, - .restart_block = { + .state = 0, + .stack = init_stack, + .usage = REFCOUNT_INIT(2), + .flags = PF_KTHREAD, + .prio = MAX_PRIO - 20, + .static_prio = MAX_PRIO - 20, + .normal_prio = MAX_PRIO - 20, + .policy = SCHED_NORMAL, + .cpus_ptr = &init_task.cpus_mask, + .cpus_mask = CPU_MASK_ALL, + .nr_cpus_allowed = NR_CPUS, + .mm = NULL, + .active_mm = &init_mm, + .restart_block = { .fn = do_no_restart_syscall, }, .se = { - .group_node = LIST_HEAD_INIT(init_task.se.group_node), + .group_node = LIST_HEAD_INIT(init_task.se.group_node), }, .rt = { .run_list = LIST_HEAD_INIT(init_task.rt.run_list),
Signature · 1 line
2.30.1
Quoted 3 lines · Javier Contreras
Fixed two spaces coding style issue.
Signed-off-by Javier Contreras <[email protected]>
I am not maintainer for this code, and also wangjingyu beat you to this one. But one question: Given that this patch would cause "git blame" to list you as the immediate point of contact for each line changed, are you ready to answer all questions about each of those lines of code? For example, given C's default initialization to zero, why is the "mm" field explicitly set to NULL?
Thanx, Paul
Quoted 51 lines
--- init/init_task.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-)init/init_task.c +15
-15@@ -71,24 +71,24 @@ struct task_struct init_task .thread_info = INIT_THREAD_INFO(init_task), .stack_refcount = REFCOUNT_INIT(1), #endif - .state = 0, - .stack = init_stack, - .usage = REFCOUNT_INIT(2), - .flags = PF_KTHREAD, - .prio = MAX_PRIO - 20, - .static_prio = MAX_PRIO - 20, - .normal_prio = MAX_PRIO - 20, - .policy = SCHED_NORMAL, - .cpus_ptr = &init_task.cpus_mask, - .cpus_mask = CPU_MASK_ALL, - .nr_cpus_allowed= NR_CPUS, - .mm = NULL, - .active_mm = &init_mm, - .restart_block = { + .state = 0, + .stack = init_stack, + .usage = REFCOUNT_INIT(2), + .flags = PF_KTHREAD, + .prio = MAX_PRIO - 20, + .static_prio = MAX_PRIO - 20, + .normal_prio = MAX_PRIO - 20, + .policy = SCHED_NORMAL, + .cpus_ptr = &init_task.cpus_mask, + .cpus_mask = CPU_MASK_ALL, + .nr_cpus_allowed = NR_CPUS, + .mm = NULL, + .active_mm = &init_mm, + .restart_block = { .fn = do_no_restart_syscall, }, .se = { - .group_node = LIST_HEAD_INIT(init_task.se.group_node), + .group_node = LIST_HEAD_INIT(init_task.se.group_node), }, .rt = { .run_list = LIST_HEAD_INIT(init_task.rt.run_list),Signature · 1 line
2.30.1