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-calls-__cpuinit-only-fix drivers/cpufreq/cpufreq_stats.c --- a/drivers/cpufreq/cpufreq_stats.c~cpu-hotplug-make-cpu_notifier-related-notifier-calls-__cpuinit-only-fix +++ a/drivers/cpufreq/cpufreq_stats.c @@ -303,7 +303,7 @@ cpufreq_stat_notifier_trans (struct noti return 0; } -static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb, +static int cpufreq_stat_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu) { unsigned int cpu = (unsigned long)hcpu; _