public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 12/17] ips.c: fix build warning
@ 2008-03-28 21:48 akpm
  2008-03-30 17:07 ` James Bottomley
  0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2008-03-28 21:48 UTC (permalink / raw)
  To: James.Bottomley
  Cc: linux-scsi, akpm, Mark_Salyzyn, aacraid, fujita.tomonori, jeff

From: Andrew Morton <akpm@linux-foundation.org>

powerpc:

drivers/scsi/ips.c: In function 'ips_issue_copperhead':
drivers/scsi/ips.c:5436: warning: large integer implicitly truncated to unsigned type

it doesn't seem necessary to do outw(cpu_to_le32(...), ...) anyway.

Acked-by: Mark Salyzyn <Mark_Salyzyn@adaptec.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: Jeff Garzik <jeff@garzik.org>
Cc: <aacraid@adaptec.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/ips.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN drivers/scsi/ips.c~ipsc-fix-build-warning drivers/scsi/ips.c
--- a/drivers/scsi/ips.c~ipsc-fix-build-warning
+++ a/drivers/scsi/ips.c
@@ -5399,7 +5399,7 @@ ips_issue_copperhead(ips_ha_t * ha, ips_
 	}			/* end while */
 
 	outl(cpu_to_le32(scb->scb_busaddr), ha->io_addr + IPS_REG_CCSAR);
-	outw(cpu_to_le32(IPS_BIT_START_CMD), ha->io_addr + IPS_REG_CCCR);
+	outw(cpu_to_le16(IPS_BIT_START_CMD), ha->io_addr + IPS_REG_CCCR);
 
 	return (IPS_SUCCESS);
 }
_

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-04 18:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 21:48 [patch 12/17] ips.c: fix build warning akpm
2008-03-30 17:07 ` James Bottomley
2008-03-30 23:57   ` FUJITA Tomonori
2008-04-03 17:28     ` James Bottomley
2008-04-04 18:38       ` Mark Salyzyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox