Messages in this thread Patch in this message | | | Date | Fri, 14 Apr 2006 17:02:19 -0700 | From | "Randy.Dunlap" <> | Subject | [PATCH] x86 cpuid and msr notifier callback section mismatches |
| |
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;
--- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |