aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorPaul Bolle <pebolle@tiscali.nl>2013-02-21 06:39:44 -0500
committerJames Bottomley <JBottomley@Parallels.com>2013-02-24 04:38:10 -0500
commit98f99a8ac8d92fef74b61e8dd25df934afbbf843 (patch)
tree65e57c8517cdccaf9c2eeb327989af31a09e2ca5 /drivers/scsi
parentbcc48ffa4beb0db52bdca42dc3e5ce765c2ed8b5 (diff)
[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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/aacraid/src.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/aacraid/src.c b/drivers/scsi/aacraid/src.c
index 3b021ec63255..e2e349204e7d 100644
--- a/drivers/scsi/aacraid/src.c
+++ b/drivers/scsi/aacraid/src.c
@@ -407,7 +407,7 @@ static int aac_src_deliver_message(struct fib *fib)
407 fib->hw_fib_va->header.StructType = FIB_MAGIC2; 407 fib->hw_fib_va->header.StructType = FIB_MAGIC2;
408 fib->hw_fib_va->header.SenderFibAddress = (u32)address; 408 fib->hw_fib_va->header.SenderFibAddress = (u32)address;
409 fib->hw_fib_va->header.u.TimeStamp = 0; 409 fib->hw_fib_va->header.u.TimeStamp = 0;
410 BUG_ON((u32)(address >> 32) != 0L); 410 BUG_ON(upper_32_bits(address) != 0L);
411 address |= fibsize; 411 address |= fibsize;
412 } else { 412 } else {
413 /* Calculate the amount to the fibsize bits */ 413 /* Calculate the amount to the fibsize bits */
@@ -431,7 +431,7 @@ static int aac_src_deliver_message(struct fib *fib)
431 address |= fibsize; 431 address |= fibsize;
432 } 432 }
433 433
434 src_writel(dev, MUnit.IQ_H, (address >> 32) & 0xffffffff); 434 src_writel(dev, MUnit.IQ_H, upper_32_bits(address) & 0xffffffff);
435 src_writel(dev, MUnit.IQ_L, address & 0xffffffff); 435 src_writel(dev, MUnit.IQ_L, address & 0xffffffff);
436 436
437 return 0; 437 return 0;