mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] x86 cpuid and msr notifier callback section mismatches
@ 2006-04-15  0:02 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2006-04-15  0:02 UTC (permalink / raw)
  To: lkml; +Cc: akpm, hpa

From: Randy Dunlap <rdunlap@xenotime.net>

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'

Signed-off-by: Randy Dunlap <rdunlap@xenotime.net>
---
 arch/i386/kernel/cpuid.c |    2 +-
 arch/i386/kernel/msr.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- linux-2617-rc1g8.orig/arch/i386/kernel/cpuid.c
+++ linux-2617-rc1g8/arch/i386/kernel/cpuid.c
@@ -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;
 
--- linux-2617-rc1g8.orig/arch/i386/kernel/msr.c
+++ linux-2617-rc1g8/arch/i386/kernel/msr.c
@@ -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;
 


---

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-04-14 23:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-15  0:02 [PATCH] x86 cpuid and msr notifier callback section mismatches Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®