Re: [PATCHv6] ARM: imx: Add iram allocator functions

From: Lothar Waßmann
Date: Fri Oct 08 2010 - 09:53:49 EST


Hi,

Dinh.Nguyen@xxxxxxxxxxxxx writes:
[...]
> +void __iomem *iram_alloc(unsigned int size, unsigned long *dma_addr)
> +{
> + if (!iram_pool)
> + return NULL;
> +
> + *dma_addr = gen_pool_alloc(iram_pool, size);
> + pr_debug("iram alloc - %dB@0x%p\n", size, (void *)*dma_addr);
^^^^^^^^
Is there any reason to insist on this silly type cast instead of using
the format string that fits the data type?


Lothar Waßmann
--
___________________________________________________________

Ka-Ro electronics GmbH | Pascalstraße 22 | D - 52076 Aachen
Phone: +49 2408 1402-0 | Fax: +49 2408 1402-10
Geschäftsführer: Matthias Kaussen
Handelsregistereintrag: Amtsgericht Aachen, HRB 4996

www.karo-electronics.de | info@xxxxxxxxxxxxxxxxxxx
___________________________________________________________
--
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/