Skip to contentSkip to conversation

: Add __init to probe_bigsmp

PATCH New Prarit Bhargava 1 participant 1 message Feb 19, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Add __init to probe_bigsmp

Add __init to probe_bigsmp. All callers are __init and data being examined is __initdata.

Resolves MODPOST warning similar to:

WARNING: vmlinux - Section mismatch: reference to .init.data: from .text between 'probe_bigsmp' (at offset 0xc0401e56) and 'init_apic_ldr'

arch/i386/mach-generic/bigsmp.c +1 -1
@@ -44,7 +44,7 @@ static struct dmi_system_id __initdata b
 };
 
 
-static int probe_bigsmp(void)
+static int __init probe_bigsmp(void)
 { 
 	if (def_to_bigsmp)
         	dmi_bigsmp = 1;