Skip to contentSkip to conversation

x86 cpuid and msr notifier callback section mismatches

PATCH New Randy.Dunlap 1 participant 1 message Apr 14, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86 cpuid and msr notifier callback section mismatches

From: Randy Dunlap <[email protected]>

Fix section mismatch warnings in x86 cpuid and msr notifier callback functions.
We can't have these as init (discarded) code.

WARNING: arch/x86_64/kernel/cpuid.o - Section mismatch: reference to .init.text: from .data between 'cpuid_class_cpu_notifier' (at offset 0x0) and 'cpuid_fops'
WARNING: arch/x86_64/kernel/msr.o - Section mismatch: reference to .init.text: from .data between 'msr_class_cpu_notifier' (at offset 0x0) and 'msr_fops'

---
 arch/i386/kernel/cpuid.c |    2 +-
 arch/i386/kernel/msr.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/i386/kernel/cpuid.c +1 -1
@@ -168,7 +168,7 @@ static int cpuid_class_device_create(int
 	return err;
 }
 
-static int __devinit cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
+static int cpuid_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
 {
 	unsigned int cpu = (unsigned long)hcpu;
 
arch/i386/kernel/msr.c +1 -1
@@ -251,7 +251,7 @@ static int msr_class_device_create(int i
 	return err;
 }
 
-static int __devinit msr_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
+static int msr_class_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
 {
 	unsigned int cpu = (unsigned long)hcpu;
 

---