aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2019-04-04 12:44:38 -0700
committerMartin K. Petersen <[email protected]>2019-04-08 22:16:34 -0400
commit5585cbddce0e1bb6f501c861334f1fac1c601567 (patch)
tree4f9ad0c6471b08d8e3c70b303fde12c6a6775bf2
parentef19af9c2852a39878d54f185a1b32b781719542 (diff)
scsi: scsi_transport_fc: Declare wwn_to_u64() argument const
Since the wwn_to_u64() function does not change its input, make its argument const. Cc: James Smart <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Johannes Thumshirn <[email protected]> Cc: Steffen Maier <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r--include/scsi/scsi_transport_fc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h
index 3bd59256db3a..14e86afec5e4 100644
--- a/include/scsi/scsi_transport_fc.h
+++ b/include/scsi/scsi_transport_fc.h
@@ -756,7 +756,7 @@ fc_remote_port_chkready(struct fc_rport *rport)
return result;
}
-static inline u64 wwn_to_u64(u8 *wwn)
+static inline u64 wwn_to_u64(const u8 *wwn)
{
return get_unaligned_be64(wwn);
}