diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2008-01-30 07:33:36 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-01-30 07:33:36 -0500 |
commit | b48ed48a7816aafedb260cafe872a55757b9489e (patch) | |
tree | 54cf66c1cab56deb03ffcd52b33216bb4f8ef120 | |
parent | 1e35669d017eac5bea4739f927b28e64731504e1 (diff) |
x86: fix section mismatch warning in mcheck/mce_amd_64.c
Fix following warning:
WARNING: arch/x86/kernel/cpu/mcheck/built-in.o(.text+0x1584): Section mismatch: reference to .cpuinit.text:threshold_create_device in 'threshold_cpu_callback'
threshold_cpu_callback() is only used by threshold_cpu_notifier.
threshold_cpu_notifier is only used for cpu hot plug as it is registered
using register_hotcpu_notifier().
Mark them both __cpuinit to fix the warning.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_amd_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c b/arch/x86/kernel/cpu/mcheck/mce_amd_64.c index 550502596ca3..77e666628818 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_amd_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_amd_64.c | |||
@@ -645,7 +645,7 @@ static void threshold_remove_device(unsigned int cpu) | |||
645 | } | 645 | } |
646 | 646 | ||
647 | /* get notified when a cpu comes on/off */ | 647 | /* get notified when a cpu comes on/off */ |
648 | static int threshold_cpu_callback(struct notifier_block *nfb, | 648 | static int __cpuinit threshold_cpu_callback(struct notifier_block *nfb, |
649 | unsigned long action, void *hcpu) | 649 | unsigned long action, void *hcpu) |
650 | { | 650 | { |
651 | /* cpu was unsigned int to begin with */ | 651 | /* cpu was unsigned int to begin with */ |
@@ -670,7 +670,7 @@ static int threshold_cpu_callback(struct notifier_block *nfb, | |||
670 | return NOTIFY_OK; | 670 | return NOTIFY_OK; |
671 | } | 671 | } |
672 | 672 | ||
673 | static struct notifier_block threshold_cpu_notifier = { | 673 | static struct notifier_block threshold_cpu_notifier __cpuinitdata = { |
674 | .notifier_call = threshold_cpu_callback, | 674 | .notifier_call = threshold_cpu_callback, |
675 | }; | 675 | }; |
676 | 676 | ||