Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ba7c1927aa69c4dfe1ecf646f03b306e49dc8e37
Commit:     ba7c1927aa69c4dfe1ecf646f03b306e49dc8e37
Parent:     6369a2887a1b35fde91573adc650528e3efea8e9
Author:     Sam Ravnborg <[EMAIL PROTECTED]>
AuthorDate: Sun Feb 17 13:22:51 2008 +0100
Committer:  Mark M. Hoffman <[EMAIL PROTECTED]>
CommitDate: Sun Feb 17 11:26:55 2008 -0500

    hwmon: (coretemp) fix section mismatch warning
    
    Fix following warning:
    WARNING: vmlinux.o(.text+0xebfd04): Section mismatch in reference from the 
function coretemp_cpu_callback() to the function 
.cpuinit.text:coretemp_device_add()
    
    coretemp_cpu_callback() are only used inside a
    HOTPLUG_CPU block so annotate it __cpuinit.
    The notifier referencing the function are annotated
    __refdata to silence warning from the exit function.
    The unregister function do not use the embedded pointer
    but clears the variable so the annotation is OK.
    
    Signed-off-by: Sam Ravnborg <[EMAIL PROTECTED]>
    Signed-off-by: Mark M. Hoffman <[EMAIL PROTECTED]>
---
 drivers/hwmon/coretemp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
index 52914e9..cbd047e 100644
--- a/drivers/hwmon/coretemp.c
+++ b/drivers/hwmon/coretemp.c
@@ -356,7 +356,7 @@ static void coretemp_device_remove(unsigned int cpu)
        mutex_unlock(&pdev_list_mutex);
 }
 
-static int coretemp_cpu_callback(struct notifier_block *nfb,
+static int __cpuinit coretemp_cpu_callback(struct notifier_block *nfb,
                                 unsigned long action, void *hcpu)
 {
        unsigned int cpu = (unsigned long) hcpu;
@@ -373,7 +373,7 @@ static int coretemp_cpu_callback(struct notifier_block *nfb,
        return NOTIFY_OK;
 }
 
-static struct notifier_block coretemp_cpu_notifier = {
+static struct notifier_block coretemp_cpu_notifier __refdata = {
        .notifier_call = coretemp_cpu_callback,
 };
 #endif                         /* !CONFIG_HOTPLUG_CPU */
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to