Skip to content

Commit 98f99a8

Browse files
pebolleJames Bottomley
authored andcommitted
[SCSI] aacraid: suppress two GCC warnings
Building src.o for a 32 bit system triggers two GCC warnings: drivers/scsi/aacraid/src.c: In function ‘aac_src_deliver_message’: drivers/scsi/aacraid/src.c:410:3: warning: right shift count >= width of type [enabled by default] drivers/scsi/aacraid/src.c:434:2: warning: right shift count >= width of type [enabled by default] These warnings are caused by a right shift of 32. Use upper_32_bits() to suppress them. Signed-off-by: Paul Bolle <pebolle@tiscali.nl> Cc: Mahesh Rajashekhara <Mahesh_Rajashekhara@pmc-sierra.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
1 parent bcc48ff commit 98f99a8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • drivers/scsi/aacraid

‎drivers/scsi/aacraid/src.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ static int aac_src_deliver_message(struct fib *fib)
407407
fib->hw_fib_va->header.StructType = FIB_MAGIC2;
408408
fib->hw_fib_va->header.SenderFibAddress = (u32)address;
409409
fib->hw_fib_va->header.u.TimeStamp = 0;
410-
BUG_ON((u32)(address >> 32) != 0L);
410+
BUG_ON(upper_32_bits(address) != 0L);
411411
address |= fibsize;
412412
} else {
413413
/* Calculate the amount to the fibsize bits */
@@ -431,7 +431,7 @@ static int aac_src_deliver_message(struct fib *fib)
431431
address |= fibsize;
432432
}
433433

434-
src_writel(dev, MUnit.IQ_H, (address >> 32) & 0xffffffff);
434+
src_writel(dev, MUnit.IQ_H, upper_32_bits(address) & 0xffffffff);
435435
src_writel(dev, MUnit.IQ_L, address & 0xffffffff);
436436

437437
return 0;

0 commit comments

Comments
 (0)