Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

+1 -10
+1 -10
lib/debugobjects.c
··· 1364 1364 void __init debug_objects_mem_init(void) 1365 1365 { 1366 1366 struct kmem_cache *cache; 1367 - int cpu, extras; 1367 + int extras; 1368 1368 1369 1369 if (!debug_objects_enabled) 1370 1370 return; 1371 - 1372 - /* 1373 - * Initialize the percpu object pools 1374 - * 1375 - * Initialization is not strictly necessary, but was done for 1376 - * completeness. 1377 - */ 1378 - for_each_possible_cpu(cpu) 1379 - INIT_HLIST_HEAD(&per_cpu(percpu_obj_pool.free_objs, cpu)); 1380 1371 1381 1372 if (!debug_objects_selftest()) 1382 1373 return;