Skip to contentSkip to conversation

arm: vic.c: local variables should not be exposed globally

PATCH New H Hartley Sweeten 1 participant 1 message Apr 12, 2012 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: vic.c: local variables should not be exposed globally

The variable 'vic_syscore_ops' is only referenced in this file and should be marked static to prevent it from being exposed globally.

This quiets the sparse waring:

warning: symbol 'vic_syscore_ops' was not declared. Should it be static?

---

arch/arm/common/vic.c +1 -1
index 7e288f9..9dc2183 100644
@@ -142,7 +142,7 @@ static int vic_suspend(void)
 	return 0;
 }
 
-struct syscore_ops vic_syscore_ops = {
+static struct syscore_ops vic_syscore_ops = {
 	.suspend	= vic_suspend,
 	.resume		= vic_resume,
 };