]> git.baikalelectronics.ru Git - kernel.git/commit
block: sx8.c: Replace timeval with ktime_t
authorShraddha Barke <shraddha.6596@gmail.com>
Tue, 22 Dec 2015 08:32:19 +0000 (14:02 +0530)
committerJens Axboe <axboe@fb.com>
Tue, 22 Dec 2015 17:19:46 +0000 (10:19 -0700)
commit7533f7f2a83e6ed6b3873756d17384074f87547e
tree238847c85dc3efaaff4228a798915cbb5d3d649e
parent734db15c96c2d6a5dea5f3086faa77a86eeb3d65
block: sx8.c: Replace timeval with ktime_t

32-bit systems using 'struct timeval' will break in the year 2038,
in order to avoid that replace the code with more appropriate types.
This patch replaces timeval with 64 bit ktime_t which is y2038 safe.
Since st->timestamp is only interested in seconds, directly using
time64_t here. Function ktime_get_seconds is used since it uses
monotonic instead of real time and thus will not cause overflow.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/sx8.c