提交 68fe7b23 编写于 作者: T Thomas Gleixner

x86: vdso: Put declaration before code

Sigh, warnings are there for a reason.
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Cc: Andy Lutomirski <luto@amacapital.net>
Cc: John Stultz <john.stultz@linaro.org>
上级 5f293474
...@@ -83,9 +83,10 @@ void update_vsyscall_tz(void) ...@@ -83,9 +83,10 @@ void update_vsyscall_tz(void)
void update_vsyscall(struct timespec *wall_time, struct timespec *wtm, void update_vsyscall(struct timespec *wall_time, struct timespec *wtm,
struct clocksource *clock, u32 mult) struct clocksource *clock, u32 mult)
{ {
write_seqcount_begin(&vsyscall_gtod_data.seq);
struct timespec monotonic; struct timespec monotonic;
write_seqcount_begin(&vsyscall_gtod_data.seq);
/* copy vsyscall data */ /* copy vsyscall data */
vsyscall_gtod_data.clock.vclock_mode = clock->archdata.vclock_mode; vsyscall_gtod_data.clock.vclock_mode = clock->archdata.vclock_mode;
vsyscall_gtod_data.clock.cycle_last = clock->cycle_last; vsyscall_gtod_data.clock.cycle_last = clock->cycle_last;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册