time/jiffies: Make clocksource_jiffies static
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 18 Oct 2012 09:34:41 +0000 (11:34 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 13 Nov 2012 19:04:51 +0000 (14:04 -0500)
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?

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/time/jiffies.c

index 6629bf7..25f5b26 100644 (file)
@@ -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,