diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2012-03-24 04:29:22 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2012-03-24 04:29:22 -0400 |
commit | 68fe7b23d559763a2e19e5fc1cf7036e4aaecb10 (patch) | |
tree | a11f655d4e83f80849938b40cfc220e93c31cbd4 /arch/x86/kernel | |
parent | 5f293474c4c6c4dc2baaf2dfd486748b5986de76 (diff) |
x86: vdso: Put declaration before code
Sigh, warnings are there for a reason.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: John Stultz <john.stultz@linaro.org>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/vsyscall_64.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c index 4285f1f404c2..d5c69860b524 100644 --- a/arch/x86/kernel/vsyscall_64.c +++ b/arch/x86/kernel/vsyscall_64.c | |||
@@ -83,9 +83,10 @@ void update_vsyscall_tz(void) | |||
83 | void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, | 83 | void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, |
84 | struct clocksource *clock, u32 mult) | 84 | struct clocksource *clock, u32 mult) |
85 | { | 85 | { |
86 | write_seqcount_begin(&vsyscall_gtod_data.seq); | ||
87 | struct timespec monotonic; | 86 | struct timespec monotonic; |
88 | 87 | ||
88 | write_seqcount_begin(&vsyscall_gtod_data.seq); | ||
89 | |||
89 | /* copy vsyscall data */ | 90 | /* copy vsyscall data */ |
90 | vsyscall_gtod_data.clock.vclock_mode = clock->archdata.vclock_mode; | 91 | vsyscall_gtod_data.clock.vclock_mode = clock->archdata.vclock_mode; |
91 | vsyscall_gtod_data.clock.cycle_last = clock->cycle_last; | 92 | vsyscall_gtod_data.clock.cycle_last = clock->cycle_last; |