Messages in this thread Patch in this message | | | Date | Sun, 2 Dec 2007 01:43:04 +0100 | From | Adrian Bunk <> | Subject | [2.6 patch] drivers/cpufreq/cpufreq_stats.c section fix |
| |
cpufreq_stats_free_table() mustn't be __cpuexit since it's called by the __cpuinit cpufreq_stat_cpu_callback().
This patch fixes the following section mismatch reported by Chris Clayton:
<-- snip -->
... WARNING: vmlinux.o(.init.text+0x143dd): Section mismatch: reference to .exit.text:cpufreq_stats_free_table (between 'cpufreq_stat_cpu_callback' and 'cpufreq_stats_init') ...
<-- snip -->
Signed-off-by: Adrian Bunk <bunk@kernel.org>
--- b845706570b48f091f855c33cdb9979d7e83a424 diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c index 8a45d0f..1b8312b 100644 --- a/drivers/cpufreq/cpufreq_stats.c +++ b/drivers/cpufreq/cpufreq_stats.c @@ -164,7 +164,7 @@ freq_table_get_index(struct cpufreq_stats *stat, unsigned int freq) return -1; } -static void __cpuexit cpufreq_stats_free_table(unsigned int cpu) +static void cpufreq_stats_free_table(unsigned int cpu) { struct cpufreq_stats *stat = cpufreq_stats_table[cpu]; struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);
| |