From: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> Casting an integer to a void * generates a "cast to pointer from integer of different size" warning. Cast the integer to an uintptr_t first to fix it. Cc: Chris Ball <cjb@xxxxxxxxxx> Cc: Guennadi Liakhovetski <g.liakhovetski@xxxxxx> Cc: linux-mmc@xxxxxxxxxxxxxxx Signed-off-by: Laurent Pinchart <laurent.pinchart@xxxxxxxxxxxxxxxx> --- drivers/mmc/host/sh_mmcif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changes compared to v1: - Cast to uintptr_t instead of unsigned long Patch 1/2 hasn't been changed. diff --git a/drivers/mmc/host/sh_mmcif.c b/drivers/mmc/host/sh_mmcif.c index bebf2fe..dff55da 100644 --- a/drivers/mmc/host/sh_mmcif.c +++ b/drivers/mmc/host/sh_mmcif.c @@ -403,7 +403,7 @@ sh_mmcif_request_dma_one(struct sh_mmcif_host *host, slave_id = 0; chan = dma_request_slave_channel_compat(mask, shdma_chan_filter, - (void *)slave_id, &host->pd->dev, + (void *)(uintptr_t)slave_id, &host->pd->dev, direction == DMA_MEM_TO_DEV ? "tx" : "rx"); dev_dbg(&host->pd->dev, "%s: %s: got channel %p\n", __func__, -- 1.8.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html