Commit:     b48ed48a7816aafedb260cafe872a55757b9489e
Parent:     1e35669d017eac5bea4739f927b28e64731504e1
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 30 13:33:36 2008 +0100
Committer:  Ingo Molnar <[EMAIL PROTECTED]>
CommitDate: Wed Jan 30 13:33:36 2008 +0100

    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() 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 <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
 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 
index 5505025..77e6666 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)
 /* get notified when a cpu comes on/off */
-static int threshold_cpu_callback(struct notifier_block *nfb,
+static int __cpuinit threshold_cpu_callback(struct notifier_block *nfb,
                                            unsigned long action, void *hcpu)
        /* cpu was unsigned int to begin with */
@@ -670,7 +670,7 @@ static int threshold_cpu_callback(struct notifier_block 
        return NOTIFY_OK;
-static struct notifier_block threshold_cpu_notifier = {
+static struct notifier_block threshold_cpu_notifier __cpuinitdata = {
        .notifier_call = threshold_cpu_callback,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to