Skip to contentSkip to conversation

kernel/time/jiffies.c: don't expose clocksource_jiffies globably

PATCH New H Hartley Sweeten 1 participant 1 message Mar 21, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel/time/jiffies.c: don't expose clocksource_jiffies globably

The symbol clocksource_jiffies is only used in this file. Mark it static.

---

kernel/time/jiffies.c +1 -1
index a470154..60e3ff7 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,