Re: [PATCH] openrisc: io: Add missing __iomem annotation to iounmap()

From: Stafford Horne
Date: Tue Jan 19 2021 - 16:21:14 EST


On Mon, Dec 28, 2020 at 09:33:28AM +0100, Geert Uytterhoeven wrote:
> With C=1:
>
> drivers/soc/renesas/rmobile-sysc.c:330:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void *addr @@ got void [noderef] __iomem *[assigned] base @@
> drivers/soc/renesas/rmobile-sysc.c:330:33: sparse: expected void *addr
> drivers/soc/renesas/rmobile-sysc.c:330:33: sparse: got void [noderef] __iomem *[assigned] base
>
> Fix this by adding the missing __iomem annotation to iounmap().
>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>

Reviewed and OK. I queued this to my 5.11 fixes branch. I will send a PR for this
over the weekend.

https://github.com/openrisc/linux/commits/or1k-5.11-fixes

(Found this one in spam and hopefully fixed up my filters now)

-Stafford