From: Chandra Seetharaman WARNING: drivers/cpufreq/cpufreq_stats.o - Section mismatch: reference to .init.data:cpufreq_stat_cpu_notifier from .exit.text after 'cleanup_module' (at offset 0x23) WARNING: drivers/cpufreq/cpufreq_stats.o - Section mismatch: reference to .init.text: from .exit.text after 'cleanup_module' (at offset 0x28) Make cpufreq_stat_cpu_callback() and cpufreq_stat_cpu_notifier available irrespective of whether HOTPLUG_CPU is defined or not. Also, use hotplug version of register/unregister cpu_notifiers. Signed-off-by: Chandra Seetharaman Signed-off-by: Andrew Morton --- drivers/cpufreq/cpufreq_stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/cpufreq/cpufreq_stats.c~cpu-hotplug-make-cpu_notifier-related-notifier-blocks-__cpuinit-only-fix drivers/cpufreq/cpufreq_stats.c --- a/drivers/cpufreq/cpufreq_stats.c~cpu-hotplug-make-cpu_notifier-related-notifier-blocks-__cpuinit-only-fix +++ a/drivers/cpufreq/cpufreq_stats.c @@ -319,7 +319,7 @@ static int cpufreq_stat_cpu_callback(str return NOTIFY_OK; } -static struct notifier_block __cpuinitdata cpufreq_stat_cpu_notifier = +static struct notifier_block cpufreq_stat_cpu_notifier = { .notifier_call = cpufreq_stat_cpu_callback, }; _