]> git.baikalelectronics.ru Git - kernel.git/commit
qla2xxx: Remove use of 'struct timeval'
authorTina Ruchandani <ruchandani.tina@gmail.com>
Mon, 25 Jan 2016 22:00:20 +0000 (23:00 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Apr 2016 20:53:18 +0000 (16:53 -0400)
commit902f0c13e39bd6e6a87e3788c875eef234d12b3f
tree31b738360f368d363ca3da9a87258eb14a8f0c4c
parentdeecc320ef04d2ba78569f48da1412321d518884
qla2xxx: Remove use of 'struct timeval'

struct register_host_info stores a 64-bit UTC system time timestamp.
This patch removes the use of 'struct timeval' to obtain that timestamp
as its tv_sec value will overflow on 32-bit systems in year 2038 beyond.
The patch uses ktime_get_real_seconds() which returns a 64-bit seconds value.

Signed-off-by: Tina Ruchandani <ruchandani.tina@gmail.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_mr.c