SCSI: fc-transport: Use packed modifier for fc_bsg_request structure.
authorHarish Zunjarrao <harish.zunjarrao@qlogic.com>
Tue, 12 Jan 2010 20:59:50 +0000 (12:59 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:41:30 +0000 (07:41 -0700)
commitcf1b641450854a784a388273b089181c34a00b6c
tree57b99f45ba48a7b2230df7be3061ed277096ba42
parent7de7b92d392d6c82587085b03f6cdfecccccb61d
SCSI: fc-transport: Use packed modifier for fc_bsg_request structure.

commit eda05a28ec52be40086400a1b606d211276f0e41 upstream.

The 32bit kernel does not add padding bytes in the fc_bsg_request structure
whereas the 64bit kernel adds padding bytes in the fc_bsg_request structure.
Due to this, structure elements gets mismatched with 32bit application and
64bit kernel.To resolve this, used packed modifier to avoid adding padding bytes.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Cc: maximilian attems <max@stro.at>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/scsi/scsi_bsg_fc.h