From 3f397bf9553d9f142fbfaa19713e0350803fcc31 Mon Sep 17 00:00:00 2001 From: Thomas Gleixner Date: Mon, 7 Oct 2024 18:49:56 +0200 Subject: debugobjects: Remove pointless hlist initialization It's BSS zero initialized. Signed-off-by: Thomas Gleixner Reviewed-by: Zhen Lei Link: https://lore.kernel.org/all/20241007164913.200379308@linutronix.de --- lib/debugobjects.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'lib') 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; -- cgit v1.2.3-70-g09d2