linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm, slab: fix bad alignments
@ 2022-06-09  4:01 Jiapeng Chong
  2022-06-11  3:50 ` Hyeonggon Yoo
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Jiapeng Chong @ 2022-06-09  4:01 UTC (permalink / raw)
  To: cl
  Cc: penberg, rientjes, iamjoonsoo.kim, akpm, vbabka, roman.gushchin,
	42.hyeyoo, linux-mm, linux-kernel, Jiapeng Chong, Abaci Robot

As reported by coccicheck:

./mm/slab.c:3253:2-59: code aligned with following code on line 3255.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
---
 mm/slab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slab.c b/mm/slab.c
index 47151fb2b2d2..c359c0f2c897 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -3223,7 +3223,7 @@ slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, size_t orig_
 	}
 	/* ___cache_alloc_node can fall back to other nodes */
 	ptr = ____cache_alloc_node(cachep, flags, nodeid);
-  out:
+out:
 	local_irq_restore(save_flags);
 	ptr = cache_alloc_debugcheck_after(cachep, flags, ptr, caller);
 	init = slab_want_init_on_alloc(flags, cachep);
@@ -3252,7 +3252,7 @@ __do_cache_alloc(struct kmem_cache *cache, gfp_t flags)
 	if (!objp)
 		objp = ____cache_alloc_node(cache, flags, numa_mem_id());
 
-  out:
+out:
 	return objp;
 }
 #else
-- 
2.20.1.7.g153144c



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm, slab: fix bad alignments
  2022-06-09  4:01 [PATCH] mm, slab: fix bad alignments Jiapeng Chong
@ 2022-06-11  3:50 ` Hyeonggon Yoo
  2022-06-12 22:45 ` David Rientjes
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Hyeonggon Yoo @ 2022-06-11  3:50 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: cl, penberg, rientjes, iamjoonsoo.kim, akpm, vbabka,
	roman.gushchin, linux-mm, linux-kernel, Abaci Robot

On Thu, Jun 09, 2022 at 12:01:32PM +0800, Jiapeng Chong wrote:
> As reported by coccicheck:
> 
> ./mm/slab.c:3253:2-59: code aligned with following code on line 3255.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
> ---
>  mm/slab.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/mm/slab.c b/mm/slab.c
> index 47151fb2b2d2..c359c0f2c897 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -3223,7 +3223,7 @@ slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, size_t orig_
>  	}
>  	/* ___cache_alloc_node can fall back to other nodes */
>  	ptr = ____cache_alloc_node(cachep, flags, nodeid);
> -  out:
> +out:
>  	local_irq_restore(save_flags);
>  	ptr = cache_alloc_debugcheck_after(cachep, flags, ptr, caller);
>  	init = slab_want_init_on_alloc(flags, cachep);
> @@ -3252,7 +3252,7 @@ __do_cache_alloc(struct kmem_cache *cache, gfp_t flags)
>  	if (!objp)
>  		objp = ____cache_alloc_node(cache, flags, numa_mem_id());
>  
> -  out:
> +out:
>  	return objp;
>  }
>  #else
> -- 
> 2.20.1.7.g153144c

Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>

-- 
Thanks,
Hyeonggon


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm, slab: fix bad alignments
  2022-06-09  4:01 [PATCH] mm, slab: fix bad alignments Jiapeng Chong
  2022-06-11  3:50 ` Hyeonggon Yoo
@ 2022-06-12 22:45 ` David Rientjes
  2022-06-13  3:20 ` Muchun Song
  2022-06-14 13:15 ` Vlastimil Babka
  3 siblings, 0 replies; 5+ messages in thread
From: David Rientjes @ 2022-06-12 22:45 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: cl, penberg, iamjoonsoo.kim, akpm, vbabka, roman.gushchin,
	42.hyeyoo, linux-mm, linux-kernel, Abaci Robot

On Thu, 9 Jun 2022, Jiapeng Chong wrote:

> As reported by coccicheck:
> 
> ./mm/slab.c:3253:2-59: code aligned with following code on line 3255.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Acked-by: David Rientjes <rientjes@google.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm, slab: fix bad alignments
  2022-06-09  4:01 [PATCH] mm, slab: fix bad alignments Jiapeng Chong
  2022-06-11  3:50 ` Hyeonggon Yoo
  2022-06-12 22:45 ` David Rientjes
@ 2022-06-13  3:20 ` Muchun Song
  2022-06-14 13:15 ` Vlastimil Babka
  3 siblings, 0 replies; 5+ messages in thread
From: Muchun Song @ 2022-06-13  3:20 UTC (permalink / raw)
  To: Jiapeng Chong
  Cc: cl, penberg, rientjes, iamjoonsoo.kim, akpm, vbabka,
	roman.gushchin, 42.hyeyoo, linux-mm, linux-kernel, Abaci Robot

On Thu, Jun 09, 2022 at 12:01:32PM +0800, Jiapeng Chong wrote:
> As reported by coccicheck:
> 
> ./mm/slab.c:3253:2-59: code aligned with following code on line 3255.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Reviewed-by: Muchun Song <songmuchun@bytedance.com>

Thanks.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] mm, slab: fix bad alignments
  2022-06-09  4:01 [PATCH] mm, slab: fix bad alignments Jiapeng Chong
                   ` (2 preceding siblings ...)
  2022-06-13  3:20 ` Muchun Song
@ 2022-06-14 13:15 ` Vlastimil Babka
  3 siblings, 0 replies; 5+ messages in thread
From: Vlastimil Babka @ 2022-06-14 13:15 UTC (permalink / raw)
  To: Jiapeng Chong, cl
  Cc: penberg, rientjes, iamjoonsoo.kim, akpm, roman.gushchin,
	42.hyeyoo, linux-mm, linux-kernel, Abaci Robot

On 6/9/22 06:01, Jiapeng Chong wrote:
> As reported by coccicheck:
> 
> ./mm/slab.c:3253:2-59: code aligned with following code on line 3255.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>

Thanks, added to slab/for-5.20/trivial

> ---
>  mm/slab.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/mm/slab.c b/mm/slab.c
> index 47151fb2b2d2..c359c0f2c897 100644
> --- a/mm/slab.c
> +++ b/mm/slab.c
> @@ -3223,7 +3223,7 @@ slab_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid, size_t orig_
>  	}
>  	/* ___cache_alloc_node can fall back to other nodes */
>  	ptr = ____cache_alloc_node(cachep, flags, nodeid);
> -  out:
> +out:
>  	local_irq_restore(save_flags);
>  	ptr = cache_alloc_debugcheck_after(cachep, flags, ptr, caller);
>  	init = slab_want_init_on_alloc(flags, cachep);
> @@ -3252,7 +3252,7 @@ __do_cache_alloc(struct kmem_cache *cache, gfp_t flags)
>  	if (!objp)
>  		objp = ____cache_alloc_node(cache, flags, numa_mem_id());
>  
> -  out:
> +out:
>  	return objp;
>  }
>  #else



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-14 13:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  4:01 [PATCH] mm, slab: fix bad alignments Jiapeng Chong
2022-06-11  3:50 ` Hyeonggon Yoo
2022-06-12 22:45 ` David Rientjes
2022-06-13  3:20 ` Muchun Song
2022-06-14 13:15 ` Vlastimil Babka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox