From: Sam Ravnborg Date: Sun, 17 Feb 2008 12:22:51 +0000 (+0100) Subject: hwmon: (coretemp) fix section mismatch warning X-Git-Tag: v2.6.25-rc3~94^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ba7c1927aa69c4dfe1ecf646f03b306e49dc8e37;p=pandora-kernel.git 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 Signed-off-by: Mark M. Hoffman --- Reading git-diff-tree failed