cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [2.6 patch] drivers/cpufreq/cpufreq_stats.c section fix
       [not found] <200711291419.49261.chris2553@googlemail.com>
@ 2007-12-02  0:43 ` Adrian Bunk
  0 siblings, 0 replies; only message in thread
From: Adrian Bunk @ 2007-12-02  0:43 UTC (permalink / raw)
  To: Chris Clayton, davej; +Cc: linux-kernel, cpufreq

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);


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-12-02  0:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200711291419.49261.chris2553@googlemail.com>
2007-12-02  0:43 ` [2.6 patch] drivers/cpufreq/cpufreq_stats.c section fix Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox