]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - arch/x86/entry/vdso/vclock_gettime.c
x86/vdso: Use unsigned int consistently for vsyscall_gtod_data:: Seq
[thirdparty/kernel/stable.git] / arch / x86 / entry / vdso / vclock_gettime.c
index 6a950854034fd2ec952aa6fb47d23d256c12d995..b50ee064beff0b08782c1d465a32048bbdbdc7f9 100644 (file)
@@ -208,7 +208,7 @@ notrace static inline u64 vgetsns(int *mode)
 /* Code size doesn't matter (vdso is 4k anyway) and this is faster. */
 notrace static int __always_inline do_realtime(struct timespec *ts)
 {
-       unsigned long seq;
+       unsigned int seq;
        u64 ns;
        int mode;
 
@@ -229,7 +229,7 @@ notrace static int __always_inline do_realtime(struct timespec *ts)
 
 notrace static int __always_inline do_monotonic(struct timespec *ts)
 {
-       unsigned long seq;
+       unsigned int seq;
        u64 ns;
        int mode;
 
@@ -250,7 +250,7 @@ notrace static int __always_inline do_monotonic(struct timespec *ts)
 
 notrace static void do_realtime_coarse(struct timespec *ts)
 {
-       unsigned long seq;
+       unsigned int seq;
        do {
                seq = gtod_read_begin(gtod);
                ts->tv_sec = gtod->wall_time_coarse_sec;
@@ -260,7 +260,7 @@ notrace static void do_realtime_coarse(struct timespec *ts)
 
 notrace static void do_monotonic_coarse(struct timespec *ts)
 {
-       unsigned long seq;
+       unsigned int seq;
        do {
                seq = gtod_read_begin(gtod);
                ts->tv_sec = gtod->monotonic_time_coarse_sec;