瀏覽代碼

timekeeping: Make local variables static

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: John Stultz <johnstul@us.ibm.com>
LKML-Reference: <0D753D10438DA54287A00B027084269764CE0E54B7@AUSP01VMBX24.collaborationhost.net>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
H Hartley Sweeten 14 年之前
父節點
當前提交
afa14e7c55
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      kernel/time/timekeeping.c

+ 2 - 2
kernel/time/timekeeping.c

@@ -49,7 +49,7 @@ struct timekeeper {
 	u32	mult;
 	u32	mult;
 };
 };
 
 
-struct timekeeper timekeeper;
+static struct timekeeper timekeeper;
 
 
 /**
 /**
  * timekeeper_setup_internals - Set up internals to use clocksource clock.
  * timekeeper_setup_internals - Set up internals to use clocksource clock.
@@ -164,7 +164,7 @@ static struct timespec total_sleep_time;
 /*
 /*
  * The raw monotonic time for the CLOCK_MONOTONIC_RAW posix clock.
  * The raw monotonic time for the CLOCK_MONOTONIC_RAW posix clock.
  */
  */
-struct timespec raw_time;
+static struct timespec raw_time;
 
 
 /* flag for if timekeeping is suspended */
 /* flag for if timekeeping is suspended */
 int __read_mostly timekeeping_suspended;
 int __read_mostly timekeeping_suspended;