Skip to contentSkip to conversation

time-sched.c: tick_nohz_update_jiffies should be static

PATCH Applied Jaswinder Singh Rajput 2 participants 2 messages Jan 14, 2009 – Jan 15, 2009 Nohz, dynticks support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 time-sched.c: tick_nohz_update_jiffies should be static

Impact: cleanup, reduce kernel size a bit, avoid sparse warning

Fixes sparse warning:
kernel/time/tick-sched.c:137:6: warning: symbol 'tick_nohz_update_jiffies' was not declared. Should it be static?

---
 kernel/time/tick-sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/time/tick-sched.c +1 -1
index 1b6c05b..d3f1ef4 100644
@@ -134,7 +134,7 @@ __setup("nohz=", setup_tick_nohz);
  * value. We do this unconditionally on any cpu, as we don't know whether the
  * cpu, which has the update task assigned is in a long sleep.
  */
-void tick_nohz_update_jiffies(void)
+static void tick_nohz_update_jiffies(void)
 {
 	int cpu = smp_processor_id();
 	struct tick_sched *ts = &per_cpu(tick_cpu_sched, cpu);
Signature · 1 line
1.6.0.6
Applied
#1 lore raw
Quoted 9 lines · Jaswinder Singh Rajput

Impact: cleanup, reduce kernel size a bit, avoid sparse warning

Fixes sparse warning:
kernel/time/tick-sched.c:137:6: warning: symbol 'tick_nohz_update_jiffies' was not declared. Should it be static?

---
 kernel/time/tick-sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applied to tip/timers/urgent, thanks Jaswinder!

Ingo