powerpc: Cast away __iomem in low level IO routines
authorBenjamin Gray <bgray@linux.ibm.com>
Wed, 11 Oct 2023 05:37:09 +0000 (16:37 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Oct 2023 06:16:20 +0000 (17:16 +1100)
commit2c4ce3e65b1a543123ffcec4b021ad6ebd4e4e4e
tree3d93e7c191dc58f58092d94f2a2926e87f566c6f
parentc6519c6df0722e432f330afbc7c00d16d5be5c58
powerpc: Cast away __iomem in low level IO routines

Sparse reports dereferencing an __iomem pointer. These routines
are clearly low level handlers for IO memory, so force cast away
the __iomem annotation to tell sparse the dereferences are safe.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-11-bgray@linux.ibm.com
arch/powerpc/kernel/io.c