[PATCH] Fix IXP4xx MTD driver no cast warning

Linus Torvalds torvalds at osdl.org
Thu Sep 29 16:00:18 EDT 2005



On Thu, 29 Sep 2005, Deepak Saxena wrote:
> 
> drivers/mtd/maps/ixp4xx.c: In function 'ixp4xx_flash_probe':
> drivers/mtd/maps/ixp4xx.c:199: warning: assignment makes integer from
> pointer without a cast

Please don't. The warning is entirely warranted, as far as I can tell.

Shutting up warnings just because they are warnings is bad practice. 
Either fix them, or leave them be.

If you do an "ioremap()", then the result is a "(void __iomem *)". If you 
assign it to something that is "unsigned long", you _should_ get a 
warning.

		Linus




More information about the linux-mtd mailing list