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

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

powerpc:

drivers/scsi/hptiop.c: In function 'iop_set_config_mv':
drivers/scsi/hptiop.c:395: warning: large integer implicitly truncated to unsigned type

This field is only 32-bit, so cpu_to_le64() seems wrong.

Cc: HighPoint Linux Team <linux@highpoint-tech.com>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

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

diff -puN drivers/scsi/hptiop.c~drivers-scsi-hptiopc-fix-build-warning drivers/scsi/hptiop.c
--- a/drivers/scsi/hptiop.c~drivers-scsi-hptiopc-fix-build-warning
+++ a/drivers/scsi/hptiop.c
@@ -392,7 +392,7 @@ static int iop_set_config_mv(struct hpti
 	req->header.size =
 		cpu_to_le32(sizeof(struct hpt_iop_request_set_config));
 	req->header.result = cpu_to_le32(IOP_RESULT_PENDING);
-	req->header.context = cpu_to_le64(IOP_REQUEST_TYPE_SET_CONFIG<<5);
+	req->header.context = cpu_to_le32(IOP_REQUEST_TYPE_SET_CONFIG<<5);
 
 	if (iop_send_sync_request_mv(hba, 0, 20000)) {
 		dprintk("Set config send cmd failed\n");
_

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

end of thread, other threads:[~2008-03-30 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-28 21:48 [patch 14/17] drivers/scsi/hptiop.c: fix build warning akpm
2008-03-30 17:36 ` James Bottomley

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