Skip to content

Commit a332347

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
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: 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') Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: Chris Clayton <chris2553@googlemail.com> Acked-by: Dave Jones <davej@codemonkey.org.uk> Cc: Russell King <rmk@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 771cceb commit a332347

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/cpufreq/cpufreq_stats.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ freq_table_get_index(struct cpufreq_stats *stat, unsigned int freq)
164164
return -1;
165165
}
166166

167-
static void __cpuexit cpufreq_stats_free_table(unsigned int cpu)
167+
static void cpufreq_stats_free_table(unsigned int cpu)
168168
{
169169
struct cpufreq_stats *stat = cpufreq_stats_table[cpu];
170170
struct cpufreq_policy *policy = cpufreq_cpu_get(cpu);

0 commit comments

Comments
 (0)