Skip to contentSkip to conversation

mm, slab: fix bad alignments

PATCH In review Jiapeng Chong 5 participants 5 messages Jun 9, 2022 – Jun 14, 2022 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm, slab: fix bad alignments

As reported by coccicheck:

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

---
 mm/slab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/slab.c +2 -2
index 47151fb2b2d2..c359c0f2c897 100644
@@ -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
Signature · 1 line
2.20.1.7.g153144c
Acked-by on v1 1/1
#1 lore raw
Quoted 34 lines · Jiapeng Chong

As reported by coccicheck:

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

---
 mm/slab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/slab.c +2 -2
index 47151fb2b2d2..c359c0f2c897 100644
@@ -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
Signature · 1 line
2.20.1.7.g153144c
Signature · 2 lines
Thanks,
Hyeonggon
#4 lore raw
In reply to Jiapeng Chong
Quoted 6 lines · Jiapeng Chong

As reported by coccicheck:

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

Thanks, added to slab/for-5.20/trivial

Quoted 26 lines
---
 mm/slab.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
mm/slab.c +2 -2
index 47151fb2b2d2..c359c0f2c897 100644
@@ -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