Skip to contentSkip to conversation

x86/intel-mid: Make intel_mid_ops static

PATCH New Andy Shevchenko 2 participants 2 messages Oct 9, 2015 – Oct 11, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 x86/intel-mid: Make intel_mid_ops static

The following warning is issued on unfixed code.

arch/x86/platform/intel-mid/intel-mid.c:64:22: warning: symbol 'intel_mid_ops' was not declared. Should it be static?

---
v2:
- amend subject line

 arch/x86/platform/intel-mid/intel-mid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/platform/intel-mid/intel-mid.c +1 -1
index 01d54ea..1bbc21e 100644
@@ -61,7 +61,7 @@
 enum intel_mid_timer_options intel_mid_timer_options;
 
 /* intel_mid_ops to store sub arch ops */
-struct intel_mid_ops *intel_mid_ops;
+static struct intel_mid_ops *intel_mid_ops;
 /* getter function for sub arch ops*/
 static void *(*get_intel_mid_ops[])(void) = INTEL_MID_OPS_INIT;
 enum intel_mid_cpu_type __intel_mid_cpu_chip;
Signature · 1 line
2.5.3
#1 lore raw
x86/intel-mid: Make intel_mid_ops static
Commit-ID:  d1f0f6c72c14af8a27a6549e0623f7cd61805e83
Gitweb:     http://git.kernel.org/tip/d1f0f6c72c14af8a27a6549e0623f7cd61805e83
Author:     Andy Shevchenko <[email protected]>
AuthorDate: Fri, 9 Oct 2015 17:25:41 +0300
Committer:  Thomas Gleixner <[email protected]>
CommitDate: Sun, 11 Oct 2015 21:03:12 +0200

x86/intel-mid: Make intel_mid_ops static

The following warning is issued on unfixed code.

arch/x86/platform/intel-mid/intel-mid.c:64:22: warning: symbol 'intel_mid_ops' was not declared. Should it be static?

---
 arch/x86/platform/intel-mid/intel-mid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/platform/intel-mid/intel-mid.c +1 -1
index 01d54ea..1bbc21e 100644
@@ -61,7 +61,7 @@
 enum intel_mid_timer_options intel_mid_timer_options;
 
 /* intel_mid_ops to store sub arch ops */
-struct intel_mid_ops *intel_mid_ops;
+static struct intel_mid_ops *intel_mid_ops;
 /* getter function for sub arch ops*/
 static void *(*get_intel_mid_ops[])(void) = INTEL_MID_OPS_INIT;
 enum intel_mid_cpu_type __intel_mid_cpu_chip;