Re: [PATCH staging-next] goldfish: pipe: fix warnings for 32bit builds

From: Alan Cox
Date: Fri May 16 2014 - 05:18:26 EST


On Fri, 2014-05-16 at 08:24 +0300, Octavian Purdila wrote:
> drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_cmd_status':
> drivers/platform/goldfish/goldfish_pipe.c:164:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> writel((u32)(u64)pipe, dev->base + PIPE_REG_CHANNEL);
> ^
> drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_cmd':
> drivers/platform/goldfish/goldfish_pipe.c:180:14: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> writel((u32)(u64)pipe, dev->base + PIPE_REG_CHANNEL);
> ^
> drivers/platform/goldfish/goldfish_pipe.c: In function 'goldfish_pipe_read_write':
> drivers/platform/goldfish/goldfish_pipe.c:337:16: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> writel((u32)(u64)pipe, dev->base + PIPE_REG_CHANNEL);
>
> Reported-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
> Cc: Jun Tian <jun.j.tian@xxxxxxxxx>
> Cc: Alan Cox <alan@xxxxxxxxxxxxxxx>
> Signed-off-by: Octavian Purdila <octavian.purdila@xxxxxxxxx>

Thanks...

Both

Acked-by: Alan Cox <alan@xxxxxxxxxxxxxxx>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/