Re: [RESEND PATCH] gpio_addr_flash: Fix warnings

From: Mike Frysinger
Date: Tue Nov 17 2009 - 11:50:51 EST


On Tue, Nov 17, 2009 at 10:46, Alan Cox wrote:
> --- a/drivers/mtd/maps/gpio-addr-flash.c
> +++ b/drivers/mtd/maps/gpio-addr-flash.c
> -    state->gpio_addrs   = (void *)gpios->start;
> +    state->gpio_addrs   = (void *)(unsigned long)gpios->start;
> -    state->map.virt    = (void __iomem *)memory->start;
> +    state->map.virt    = (void __iomem *)(unsigned long)memory->start;

on what system do you see warnings ? start should be resource_size_t
which should be phys_addr_t which should cast fine to a void*.
-mike
--
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/