From: Bart Van Assche Date: Thu, 4 Apr 2019 19:44:38 +0000 (-0700) Subject: scsi: scsi_transport_fc: Declare wwn_to_u64() argument const X-Git-Tag: v5.2-rc1~130^2~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5585cbddce0e1bb6f501c861334f1fac1c601567;p=thirdparty%2Fkernel%2Flinux.git 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 Cc: Hannes Reinecke Cc: Johannes Thumshirn Cc: Steffen Maier Signed-off-by: Bart Van Assche Reviewed-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen --- diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h index 3bd59256db3ab..14e86afec5e4e 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); }