]> git.baikalelectronics.ru Git - kernel.git/commit
mpt3sas: Remove usage of 'struct timeval'
authorTina Ruchandani <ruchandani.tina@gmail.com>
Wed, 13 Apr 2016 07:01:40 +0000 (00:01 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Apr 2016 20:53:19 +0000 (16:53 -0400)
commitd2b04467444303c737019e11c7b3ea2b240c1b8e
tree4b10f1613ef01a32340ebf0c3fbb2862b1cceea8
parentca58ef8d4a2f2b891651494cddd9cd79037bdb31
mpt3sas: Remove usage of 'struct timeval'

'struct timeval' will have its tv_sec value overflow on 32-bit systems
in year 2038 and beyond. This patch replaces the use of struct timeval
for computing mpi_request.TimeStamp, and instead uses ktime_t which
provides 64-bit seconds value. The timestamp computed remains
unaffected (milliseconds since Unix epoch).

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Sathya Prakash <sathya.prakash@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c