]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Use 64-bit timekeeping
authorTina Ruchandani <ruchandani.tina@gmail.com>
Fri, 30 Oct 2015 08:24:56 +0000 (01:24 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 1 Nov 2015 22:01:16 +0000 (17:01 -0500)
commit1032a6687168af9509615879d513f77e4049062e
treea3350d57a512f7c167b9986b90162068aa175f39
parent1cf7d8dda2bd1704ca8552c93d5475af444a986b
Use 64-bit timekeeping

This patch changes the use of struct timespec in
dccp_probe to use struct timespec64 instead. timespec uses a 32-bit
seconds field which will overflow in the year 2038 and beyond. timespec64
uses a 64-bit seconds field. Note that the correctness of the code isn't
changed, since the original code only uses the timestamps to compute a
small elapsed interval. This patch is part of a larger attempt to remove
instances of 32-bit timekeeping structures (timespec, timeval, time_t)
from the kernel so it is easier to identify where the real 2038 issues
are.

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/probe.c