Skip to content

Commit

Permalink
time/jiffies: Make refined_jiffies static
Browse files Browse the repository at this point in the history
sparse complains:

  CHECK   kernel/time/jiffies.c
kernel/time/jiffies.c:92:20: warning: symbol 'refined_jiffies' was not
			     	      declared. Should it be static?

Its only used in file scope. Make it static.

Signed-off-by: Valdis Kletnieks <[email protected]>
Signed-off-by: Thomas Gleixner <[email protected]>
Link: https://lkml.kernel.org/r/32342.1552379915@turing-police
  • Loading branch information
valdisk authored and KAGA-KOKO committed Mar 22, 2019
1 parent 9e98c67 commit e875005
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/time/jiffies.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ struct clocksource * __init __weak clocksource_default_clock(void)
return &clocksource_jiffies;
}

struct clocksource refined_jiffies;
static struct clocksource refined_jiffies;

int register_refined_jiffies(long cycles_per_second)
{
Expand Down

0 comments on commit e875005

Please sign in to comment.