Re: [PATCH] init/init_task.c spaces required around that '='

From: Peter Zijlstra
Date: Fri Feb 26 2021 - 03:20:18 EST


On Fri, Feb 26, 2021 at 03:09:00PM +0800, wangjingyu wrote:
> Ensure checkpatch compliance
>
> Signed-off-by: wangjingyu <wangjingyu@xxxxxxxxxxxxx>
> ---
> init/init_task.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/init/init_task.c b/init/init_task.c
> index 15f6eb93a04f..0f995118c6c0 100644
> --- a/init/init_task.c
> +++ b/init/init_task.c
> @@ -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.

> .mm = NULL,
> .active_mm = &init_mm,
> .restart_block = {
> --
> 2.11.0
>
>
>