summaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2024-10-07 18:49:56 +0200
committerThomas Gleixner <tglx@linutronix.de>2024-10-15 17:30:30 +0200
commit3f397bf9553d9f142fbfaa19713e0350803fcc31 (patch)
tree0d4cbb7d8998e5380c8c0955c168abfa3fec382e /lib/debugobjects.c
parent55fb412ef7d0c33226fcac4ebc68c60282e5f150 (diff)
downloadlinux-stable-3f397bf9553d9f142fbfaa19713e0350803fcc31.tar.gz
linux-stable-3f397bf9553d9f142fbfaa19713e0350803fcc31.tar.bz2
linux-stable-3f397bf9553d9f142fbfaa19713e0350803fcc31.zip
debugobjects: Remove pointless hlist initialization
It's BSS zero initialized. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Zhen Lei <thunder.leizhen@huawei.com> Link: https://lore.kernel.org/all/20241007164913.200379308@linutronix.de
Diffstat (limited to 'lib/debugobjects.c')
-rw-r--r--lib/debugobjects.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/debugobjects.c b/lib/debugobjects.c
index 1f6bf0fb0b20..9867412d7946 100644
--- a/lib/debugobjects.c
+++ b/lib/debugobjects.c
@@ -1364,20 +1364,11 @@ free:
void __init debug_objects_mem_init(void)
{
struct kmem_cache *cache;
- int cpu, extras;
+ int extras;
if (!debug_objects_enabled)
return;
- /*
- * Initialize the percpu object pools
- *
- * Initialization is not strictly necessary, but was done for
- * completeness.
- */
- for_each_possible_cpu(cpu)
- INIT_HLIST_HEAD(&per_cpu(percpu_obj_pool.free_objs, cpu));
-
if (!debug_objects_selftest())
return;