From: Roland Dreier Date: Tue, 18 Apr 2006 16:05:39 +0000 (-0700) Subject: [SCSI] srp.h: avoid padding of structs X-Git-Tag: v2.6.17-rc4~4^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec448a0a361ce3fa97a32a5c267a680163ffe8c5;p=pandora-kernel.git [SCSI] srp.h: avoid padding of structs Several structs in get padded to a multiple of 8 bytes on 64-bit architectures and end up with a size that does not match the definition in the SRP spec: SRP spec 64-bit sizeof (struct indirect_buf) 20 24 sizeof (struct srp_login_rsp) 52 56 sizeof (struct srp_rsp) 36 40 Fix this by adding __attribute__((packed)) to the offending structs. Problem pointed out by Arne Redlich . Signed-off-by: Roland Dreier Signed-off-by: James Bottomley --- Reading git-diff-tree failed