Skip to content

Commit

Permalink
[SCSI] fc-transport: Use packed modifier for fc_bsg_request structure.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Harish Zunjarrao authored and James Bottomley committed Jan 17, 2010
1 parent 368bbe0 commit eda05a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/scsi/scsi_bsg_fc.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ struct fc_bsg_request {
struct fc_bsg_rport_els r_els;
struct fc_bsg_rport_ct r_ct;
} rqst_data;
};
} __attribute__((packed));


/* response (request sense data) structure of the sg_io_v4 */
Expand Down

0 comments on commit eda05a2

Please sign in to comment.