]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: jz4740: fix '__iomem *' vs. '* __iomem'
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 17 Jan 2019 17:39:07 +0000 (18:39 +0100)
committerBoris Brezillon <bbrezillon@kernel.org>
Fri, 18 Jan 2019 09:26:46 +0000 (10:26 +0100)
commit69d506b04f0ec9b2bd33fc7247f3faa9d1677724
treea9e90f2d6f8e5385d22003698dddc8c7d6271c55
parent5326f809f434281c8a61071695e8fc88c53f8767
mtd: nand: jz4740: fix '__iomem *' vs. '* __iomem'

The function jz_nand_ioremap_resource() needs a pointer to an __iomem
pointer as its last argument but this argument is declared as:
void * __iomem *base

Fix this by using the correct declaration:
void __iomem **base
which then also removes the following Sparse's warnings:
  282:15: warning: incorrect type in assignment (different address spaces)
  282:15:    expected void *[noderef] <asn:2>
  282:15:    got void [noderef] <asn:2> *
  322:57: warning: incorrect type in argument 4 (different address spaces)
  322:57:    expected void *[noderef] <asn:2> *base
  322:57:    got void [noderef] <asn:2> **
  402:67: warning: incorrect type in argument 4 (different address spaces)
  402:67:    expected void *[noderef] <asn:2> *base
  402:67:    got void [noderef] <asn:2> **

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Acked-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
drivers/mtd/nand/raw/jz4740_nand.c