2011-06-10 21:43:52

by Hartley Sweeten

[permalink] [raw]
Subject: [PATCH] kernel/time/jiffies.c: local symbols should be static

The symbol 'clocksource_jiffies' is not used outside this file and
should be marked static.

Signed-off-by: H Hartley Sweeten <[email protected]>
Cc: Torben Hohn <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Lucas De Marchi <[email protected]>

---

diff --git a/kernel/time/jiffies.c b/kernel/time/jiffies.c
index a470154..60e3ff7 100644
--- a/kernel/time/jiffies.c
+++ b/kernel/time/jiffies.c
@@ -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,