[SCSI] bfa: fix endianess sparse check warnings

First round of fix for the endianess check warnings from make C=2 CF="-D__CHECK_ENDIAN__".

Signed-off-by: Maggie <xmzhang@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
Maggie
2010-11-29 18:26:32 -08:00
committed by James Bottomley
parent 52f94b6fd0
commit 50444a3400
14 changed files with 228 additions and 225 deletions

View File

@@ -1683,7 +1683,8 @@ bfa_ioc_mbox_hbfail(struct bfa_ioc_s *ioc)
static bfa_status_t
bfa_ioc_smem_read(struct bfa_ioc_s *ioc, void *tbuf, u32 soff, u32 sz)
{
u32 pgnum, loff, r32;
u32 pgnum, loff;
__be32 r32;
int i, len;
u32 *buf = tbuf;
@@ -1909,7 +1910,7 @@ bfa_ioc_is_initialized(struct bfa_ioc_s *ioc)
void
bfa_ioc_msgget(struct bfa_ioc_s *ioc, void *mbmsg)
{
u32 *msgp = mbmsg;
__be32 *msgp = mbmsg;
u32 r32;
int i;