linux/drivers/scsi/esas2r
Arnd Bergmann feeeca4ce2 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>
2018-04-20 19:40:16 -04:00
..
atioctl.h
atvda.h
esas2r_disc.c [SCSI] esas2r: Directly call kernel functions for atomic bit operations 2013-10-25 09:58:59 +01:00
esas2r_flash.c esas2r: Correct typos of "validate" in a comment 2014-12-04 09:58:33 +01:00
esas2r_init.c scsi: esas2r: use ktime_get_real_seconds() 2018-04-20 19:40:16 -04:00
esas2r_int.c [SCSI] esas2r: Directly call kernel functions for atomic bit operations 2013-10-25 09:58:59 +01:00
esas2r_io.c [SCSI] esas2r: Directly call kernel functions for atomic bit operations 2013-10-25 09:58:59 +01:00
esas2r_ioctl.c scsi: esas2r: Replace semaphore fs_api_semaphore with mutex 2017-06-12 21:17:22 -04:00
esas2r_log.c scsi: esas2r: Remove redundant NULL check on buffer 2017-03-16 19:49:45 -04:00
esas2r_log.h scsi: esas2r: Fix format string type mistakes 2017-01-09 23:52:26 -05:00
esas2r_main.c scsi: esas2r: remove initialization / cleanup dead wood 2018-03-19 22:54:47 -04:00
esas2r_targdb.c [SCSI] esas2r: Directly call kernel functions for atomic bit operations 2013-10-25 09:58:59 +01:00
esas2r_vda.c [SCSI] esas2r: Cleanup snprinf formatting of firmware version 2013-10-25 09:58:59 +01:00
esas2r.h scsi: esas2r: remove initialization / cleanup dead wood 2018-03-19 22:54:47 -04:00
Kconfig
Makefile