]> www.infradead.org Git - users/jedix/linux-maple.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)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 13 Jul 2016 07:36:22 +0000 (00:36 -0700)
commitc3cbfb7d950c8ada70c9fb196f56b4dd67a5ac35
treec0bbac07e46d48facc2b0806cc7e1bbd2c6fe166
parent85b5505856044a1492bb29858f014a64c569235c
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>
Orabug: 22529571
(cherry picked from commit 23409bd4a8b051e28d0106c7a83f362617452098)
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/mpt3sas/mpt3sas_base.c