summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/lpfc/lpfc_sli.h
diff options
context:
space:
mode:
authorArnd Bergmann2018-06-18 17:29:51 +0200
committerMartin K. Petersen2018-06-26 17:58:07 +0200
commitfe7f4e5d11541402f54ebd777a4f49caee891401 (patch)
treee9f4920750567e7feb2c97cee671f89c58f7c078 /drivers/scsi/lpfc/lpfc_sli.h
parentscsi: aacraid: stop using deprated get_seconds() (diff)
downloadkernel-qcow2-linux-fe7f4e5d11541402f54ebd777a4f49caee891401.tar.gz
kernel-qcow2-linux-fe7f4e5d11541402f54ebd777a4f49caee891401.tar.xz
kernel-qcow2-linux-fe7f4e5d11541402f54ebd777a4f49caee891401.zip
scsi: scsi_transport_fc: use 64-bit timestamps consistently
The get_seconds() helper returns an 'unsigned long' value, which can overflow on 32-bit architectures. Since the interface we pass it into already uses a 64-bit type, we can just use ktime_get_real_seconds() instead. While we generally prefer local timestamps in CLOCK_MONOTONIC format (ktime_get_seconds), this keeps using the CLOCK_REALTIME version in order to maintain compatibility with existing code. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com> Reviewed-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_sli.h')
0 files changed, 0 insertions, 0 deletions