Skip to contentSkip to conversation

: remove __initdata from initkmem_list3

PATCH New Prarit Bhargava 1 participant 1 message Feb 20, 2007 Memory management

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : remove __initdata from initkmem_list3

Remove __initdata from initkmem_list3

Resolves MODPOST warning similar to:

WARNING: vmlinux - Section mismatch: reference to .init.data:initkmem_list3 from .text between 'set_up_list3s' (at offset 0xc046a3ed) and 's_start'

mm/slab.c +1 -1
index 70784b8..d97f252 100644
@@ -305,7 +305,7 @@ struct kmem_list3 {
  * Need this for bootstrapping a per node allocator.
  */
 #define NUM_INIT_LISTS (2 * MAX_NUMNODES + 1)
-struct kmem_list3 __initdata initkmem_list3[NUM_INIT_LISTS];
+struct kmem_list3 initkmem_list3[NUM_INIT_LISTS];
 #define	CACHE_CACHE 0
 #define	SIZE_AC 1
 #define	SIZE_L3 (1 + MAX_NUMNODES)