[SCSI] fc_transport: Generalize WWN to u64 interger conversions.
authorAndrew Vasquez <andrew.vasquez@qlogic.com>
Wed, 31 Aug 2005 22:18:35 +0000 (15:18 -0700)
committerJames Bottomley <jejb@mulgrave.(none)>
Sat, 10 Sep 2005 16:10:43 +0000 (11:10 -0500)
commit218fba0004390b0101e681f6db1b8920c1109e54
tree571c6477b4fff4808ab0faace6a5aef7517ca81a
parent37be6eeb4990c05fc7dd683ceaf1501d46ebe9a4
[SCSI] fc_transport: Generalize WWN to u64 interger conversions.

On some platforms the hard-casting of 8 byte node_name and
port_name arrays to an u64 would cause unaligned-access
warnings.  Generalize the conversions with a transport
helper function which performs consistent shifting of WWN
bytes.

Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
include/scsi/scsi_transport_fc.h