diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-04-20 19:02:09 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-04-21 02:40:16 +0300 |
commit | feeeca4ce2942b92db90e12a8e2baf0e6e3f0191 (patch) | |
tree | 5102d3cd2b81e0952564dc94de23fa408d3069df /drivers/scsi/ips.h | |
parent | f9c25ccfc173dff6de4d68bd998e1a9fa93c5cab (diff) | |
download | linux-feeeca4ce2942b92db90e12a8e2baf0e6e3f0191.tar.xz |
scsi: esas2r: use ktime_get_real_seconds()
do_gettimeofday() is deprecated because of the y2038 overflow. Here, we
use the result to pass into a 32-bit field in the firmware, which still
risks an overflow, but if the firmware is written to expect unsigned
values, it can at least last until y2106, and there is not much we can
do about it.
This changes do_gettimeofday() to ktime_get_real_seconds(), which at
least simplifies the code a bit, and avoids the deprecated
interface. I'm adding a comment about the overflow to document what
happens.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ips.h')
0 files changed, 0 insertions, 0 deletions