diff options
author | Arnd Bergmann | 2018-01-17 16:16:48 +0100 |
---|---|---|
committer | Martin K. Petersen | 2018-01-22 20:03:57 -0500 |
commit | 22807aa812a65a7b859187e0fc6cfa0802a858c4 (patch) | |
tree | f261defe3bc0491ae296345fcf28672061bc1ba0 /drivers/scsi/fnic/fnic_stats.h | |
parent | e89cabf26e1cdd5c612b6c21547b3e79b4ac1038 (diff) |
scsi: fnic: use 64-bit timestamps
struct timespec is deprecated since it overflows in 2038 on 32-bit
architectures, so we should use timespec64 consistently.
I'm slightly adapting the format strings here, to make sure we print the
nanoseconds with the correct number of leading zeroes.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_stats.h')
-rw-r--r-- | drivers/scsi/fnic/fnic_stats.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/fnic/fnic_stats.h b/drivers/scsi/fnic/fnic_stats.h index e007feedbf72..9daa6ada6fa0 100644 --- a/drivers/scsi/fnic/fnic_stats.h +++ b/drivers/scsi/fnic/fnic_stats.h @@ -18,8 +18,8 @@ #define _FNIC_STATS_H_ struct stats_timestamps { - struct timespec last_reset_time; - struct timespec last_read_time; + struct timespec64 last_reset_time; + struct timespec64 last_read_time; }; struct io_path_stats { |