Skip to contentSkip to conversation

cpuidle: kirkwood: Staticize local symbol

PATCH In review Jingoo Han 2 participants 2 messages Aug 9, 2013 CPU idle time management framework

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 2/2 cpuidle: kirkwood: Staticize local symbol

This local symbol is used only in this file.
Fix the following sparse warnings:

drivers/cpuidle/cpuidle-kirkwood.c:73:5: warning: symbol 'kirkwood_cpuidle_remove' was not declared. Should it be static?

---
 drivers/cpuidle/cpuidle-kirkwood.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cpuidle/cpuidle-kirkwood.c +1 -1
index 521b0a7..3ca3a2e 100644
@@ -70,7 +70,7 @@ static int kirkwood_cpuidle_probe(struct platform_device *pdev)
 	return cpuidle_register(&kirkwood_idle_driver, NULL);
 }
 
-int kirkwood_cpuidle_remove(struct platform_device *pdev)
+static int kirkwood_cpuidle_remove(struct platform_device *pdev)
 {
 	cpuidle_unregister(&kirkwood_idle_driver);
 	return 0;
Signature · 1 line
1.7.10.4
Acked-by on v1 2/2
#1 lore raw
Quoted 9 lines · Jingoo Han

This local symbol is used only in this file.
Fix the following sparse warnings:

drivers/cpuidle/cpuidle-kirkwood.c:73:5: warning: symbol 'kirkwood_cpuidle_remove' was not declared. Should it be static?

---
 drivers/cpuidle/cpuidle-kirkwood.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

thx,

Jason.