From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> powerpc: drivers/scsi/initio.c: In function 'initio_build_scb': drivers/scsi/initio.c:2585: warning: large integer implicitly truncated to unsigned type Cc: James Bottomley <James.Bottomley@xxxxxxxxxxxxxxxxxxxxx> Cc: FUJITA Tomonori <fujita.tomonori@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/scsi/initio.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff -puN drivers/scsi/initio.c~drivers-scsi-initioc-suppress-compile-warning drivers/scsi/initio.c --- a/drivers/scsi/initio.c~drivers-scsi-initioc-suppress-compile-warning +++ a/drivers/scsi/initio.c @@ -2582,7 +2582,11 @@ static void initio_build_scb(struct init dma_addr = dma_map_single(&host->pci_dev->dev, cmnd->sense_buffer, SENSE_SIZE, DMA_FROM_DEVICE); cblk->senseptr = cpu_to_le32((u32)dma_addr); - cblk->senselen = cpu_to_le32(SENSE_SIZE); + /* + * The below needs casting to avoid a "large integer implicitly + * truncated to unsigned type" warning on powerpc + */ + cblk->senselen = (u8)cpu_to_le32(SENSE_SIZE); cmnd->SCp.ptr = (char *)(unsigned long)dma_addr; cblk->cdblen = cmnd->cmd_len; _ -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html