summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic/fnic_trace.h
diff options
context:
space:
mode:
authorDeepa Dinamani <deepa.kernel@gmail.com>2016-10-02 01:48:14 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2016-11-08 23:29:46 +0100
commit48c4676dcbfc731a197bcf01763fcd07d9dc6725 (patch)
tree0b50a978af6e65a5c7d637e6b1cae0de6cd972a8 /drivers/scsi/fnic/fnic_trace.h
parentscsi: ipr: Use pci_irq_allocate_vectors (diff)
downloadlinux-48c4676dcbfc731a197bcf01763fcd07d9dc6725.tar.xz
linux-48c4676dcbfc731a197bcf01763fcd07d9dc6725.zip
scsi: fnic: Use time64_t to represent trace timestamps
Trace timestamps use struct timespec and CURRENT_TIME which are not y2038 safe. These timestamps are only part of the trace log on the machine and are not shared with the fnic. Replace then with y2038 safe struct timespec64 and ktime_get_real_ts64(), respectively. Signed-off-by: Deepa Dinamani <deepa.kernel@gmail.com> Reviewed-by: Arnd Bergmann <arnd@arndb.de> Cc: Hiral Patel <hiralpat@cisco.com> Cc: Suma Ramars <sramars@cisco.com> Cc: Brian Uchino <buchino@cisco.com> Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Cc: linux-scsi@vger.kernel.org Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic/fnic_trace.h')
-rw-r--r--drivers/scsi/fnic/fnic_trace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fnic/fnic_trace.h b/drivers/scsi/fnic/fnic_trace.h
index a8aa0578fcb0..e375d0c2eaaf 100644
--- a/drivers/scsi/fnic/fnic_trace.h
+++ b/drivers/scsi/fnic/fnic_trace.h
@@ -72,7 +72,7 @@ struct fnic_trace_data {
typedef struct fnic_trace_data fnic_trace_data_t;
struct fc_trace_hdr {
- struct timespec time_stamp;
+ struct timespec64 time_stamp;
u32 host_no;
u8 frame_type;
u8 frame_len;