]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
x86: vdso: Put declaration before code
authorThomas Gleixner <tglx@linutronix.de>
Sat, 24 Mar 2012 08:29:22 +0000 (09:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 24 Mar 2012 08:29:22 +0000 (09:29 +0100)
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>
arch/x86/kernel/vsyscall_64.c

index 4285f1f404c20947826c62c49713770ba5cb3c27..d5c69860b524bc85f1e5eea1685466e42c6c2945 100644 (file)
@@ -83,9 +83,10 @@ void update_vsyscall_tz(void)
 void update_vsyscall(struct timespec *wall_time, struct timespec *wtm,
                        struct clocksource *clock, u32 mult)
 {
-       write_seqcount_begin(&vsyscall_gtod_data.seq);
        struct timespec monotonic;
 
+       write_seqcount_begin(&vsyscall_gtod_data.seq);
+
        /* copy vsyscall data */
        vsyscall_gtod_data.clock.vclock_mode    = clock->archdata.vclock_mode;
        vsyscall_gtod_data.clock.cycle_last     = clock->cycle_last;