]> git.baikalelectronics.ru Git - kernel.git/commit
openrisc: io: Add missing __iomem annotation to iounmap()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 28 Dec 2020 08:33:28 +0000 (09:33 +0100)
committerStafford Horne <shorne@gmail.com>
Tue, 19 Jan 2021 21:14:26 +0000 (06:14 +0900)
commit4061e033eaca81379b06e5395386006783bc296f
tree31fc66569ec875981573f9388cb8f2fd9af58800
parent48a5ca1e274d5e09596d92c8710342103a9cb594
openrisc: io: Add missing __iomem annotation to iounmap()

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@intel.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/io.h
arch/openrisc/mm/ioremap.c