* [PATCH] init: init_task.c: fixed two spaces coding style issue
@ 2021-02-27 17:01 Javier Contreras
2021-02-27 17:44 ` Paul E. McKenney
0 siblings, 1 reply; 2+ messages in thread
From: Javier Contreras @ 2021-02-27 17:01 UTC (permalink / raw)
To: paulmck; +Cc: linux-kernel, Javier Contreras
Fixed two spaces coding style issue.
Signed-off-by: Javier Contreras <contreras.javi.0@gmail.com>
---
init/init_task.c | 30 +++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/init/init_task.c b/init/init_task.c
index 3711cdaafed2..85d6b045ef7a 100644
--- a/init/init_task.c
+++ b/init/init_task.c
@@ -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),
--
2.30.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] init: init_task.c: fixed two spaces coding style issue
2021-02-27 17:01 [PATCH] init: init_task.c: fixed two spaces coding style issue Javier Contreras
@ 2021-02-27 17:44 ` Paul E. McKenney
0 siblings, 0 replies; 2+ messages in thread
From: Paul E. McKenney @ 2021-02-27 17:44 UTC (permalink / raw)
To: Javier Contreras; +Cc: linux-kernel
On Sat, Feb 27, 2021 at 06:01:18PM +0100, Javier Contreras wrote:
> Fixed two spaces coding style issue.
>
> Signed-off-by: Javier Contreras <contreras.javi.0@gmail.com>
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
> ---
> init/init_task.c | 30 +++++++++++++++---------------
> 1 file changed, 15 insertions(+), 15 deletions(-)
>
> diff --git a/init/init_task.c b/init/init_task.c
> index 3711cdaafed2..85d6b045ef7a 100644
> --- a/init/init_task.c
> +++ b/init/init_task.c
> @@ -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),
> --
> 2.30.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-27 18:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-27 17:01 [PATCH] init: init_task.c: fixed two spaces coding style issue Javier Contreras
2021-02-27 17:44 ` Paul E. McKenney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®