Skip to contentSkip to conversation

time/jiffies: Make clocksource_jiffies static

PATCH Applied Lars-Peter Clausen 2 participants 2 messages Oct 18, 2012 – Nov 13, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 time/jiffies: Make clocksource_jiffies static

Commit f1b8274 ("clocksource: Cleanup clocksource selection") removed all external references to clocksource_jiffies so there is no need to have the symbol globally visible.

Fixes the following sparse warning:
CHECK kernel/time/jiffies.c kernel/time/jiffies.c:61:20: warning: symbol 'clocksource_jiffies' was not declared. Should it be static?

---
 kernel/time/jiffies.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/jiffies.c +1 -1
index 6629bf7..25f5b26 100644
@@ -58,7 +58,7 @@ static cycle_t jiffies_read(struct clocksource *cs)
 	return (cycle_t) jiffies;
 }
 
-struct clocksource clocksource_jiffies = {
+static struct clocksource clocksource_jiffies = {
 	.name		= "jiffies",
 	.rating		= 1, /* lowest valid rating*/
 	.read		= jiffies_read,
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 8 lines · Lars-Peter Clausen

Commit f1b8274 ("clocksource: Cleanup clocksource selection") removed all external references to clocksource_jiffies so there is no need to have the symbol globally visible.

Fixes the following sparse warning:
CHECK kernel/time/jiffies.c kernel/time/jiffies.c:61:20: warning: symbol 'clocksource_jiffies' was not declared. Should it be static?

Applied. Thanks!
-john