Patch fix following sparse warning: drivers/mtd/nand/nand_base.c:123:16: warning: incorrect type in argument 1 (different address spaces) expected void const volatile [noderef] <asn:2>*<noident> got void *IO_ADDR_R Signed-off-by: Marek Belisko <marek.belisko@xxxxxxxxxxxxxxx> --- include/linux/mtd/nand.h | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h index cb35fd2..2befaf0 100644 --- a/include/linux/mtd/nand.h +++ b/include/linux/mtd/nand.h @@ -359,10 +359,11 @@ struct nand_buffers { * (determine if errors are correctable) * @write_page: [REPLACEABLE] High-level page write function */ - +#define IOMEM(addr) ((void __force __iomem *)addr) struct nand_chip { - void *IO_ADDR_R; - void *IO_ADDR_W; + + void __iomem *IO_ADDR_R; + void __iomem *IO_ADDR_W; uint8_t (*read_byte)(struct mtd_info *mtd); u16 (*read_word)(struct mtd_info *mtd); -- 1.7.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox