From: Rakib Mullick Date: Thu, 21 Oct 2010 11:28:44 +0000 (+0600) Subject: [CPUFREQ]: x86, cpufreq: Mark longrun_get_policy with __cpuinit. X-Git-Tag: v2.6.37-rc1~112^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a69a0612c4cb7b08570d1b25b542cef478a2d79a;p=pandora-kernel.git [CPUFREQ]: x86, cpufreq: Mark longrun_get_policy with __cpuinit. This patch fixes the following warning. The function longrun_cpu_init() is marked with __cpuinit which calls longrun_get_policy() which is a __init function. So make longrun_get_policy with __cpuinit. WARNING: arch/x86/kernel/cpu/cpufreq/longrun.o(.cpuinit.text+0x4c5): Section mismatch in reference from the function longrun_cpu_init() to the function .init.text:longrun_get_policy() The function __cpuinit longrun_cpu_init() references a function __init longrun_get_policy(). If longrun_get_policy is only used by longrun_cpu_init then annotate longrun_get_policy with a matching annotation. Signed-off-by: Rakib Mullick Signed-off-by: Dave Jones --- Reading git-diff-tree failed