powerpc: Force cast on memcpy_toio()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 5 May 2023 05:24:16 +0000 (07:24 +0200)
committerChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 5 May 2023 05:26:53 +0000 (07:26 +0200)
commit3febc89563f69494e69c04b30ffbed04fa3c2b82
tree807d887510b3172619fd3b6a2c606f1be1300c54
parentbebb8dfabc3af9eeca4283000571a7400cb88c71
powerpc: Force cast on memcpy_toio()

sparse reports the following warning:

  CHECK   arch/powerpc/cpu/mpc8xx/micropatch_usb_sof.c
arch/powerpc/cpu/mpc8xx/micropatch_usb_sof.c:29:9: warning: cast removes address space '<asn:2>' of expression
arch/powerpc/cpu/mpc8xx/micropatch_usb_sof.c:30:9: warning: cast removes address space '<asn:2>' of expression

This is because of (void *) casts for using memcpy() as a substitute.

Do like other architectures, __force the cast to silence the warning

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
arch/powerpc/include/asm/io.h