浏览代码

[CPUFREQ] Fix warning in elanfreq

arch/x86/kernel/cpu/cpufreq/elanfreq.c:47:26: warning: symbol 'elan_multiplier' was not declared. Should it be static?

Yes, yes it should.

Signed-off-by: Dave Jones <davej@redhat.com>
Dave Jones 17 年之前
父节点
当前提交
460f5ef283
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/x86/kernel/cpu/cpufreq/elanfreq.c

+ 1 - 1
arch/x86/kernel/cpu/cpufreq/elanfreq.c

@@ -44,7 +44,7 @@ struct s_elan_multiplier {
  * It is important that the frequencies
  * It is important that the frequencies
  * are listed in ascending order here!
  * are listed in ascending order here!
  */
  */
-struct s_elan_multiplier elan_multiplier[] = {
+static struct s_elan_multiplier elan_multiplier[] = {
 	{1000,	0x02,	0x18},
 	{1000,	0x02,	0x18},
 	{2000,	0x02,	0x10},
 	{2000,	0x02,	0x10},
 	{4000,	0x02,	0x08},
 	{4000,	0x02,	0x08},