powerpc/kvm: Force cast endianness of KVM shared regs
authorBenjamin Gray <bgray@linux.ibm.com>
Wed, 11 Oct 2023 05:37:06 +0000 (16:37 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Oct 2023 06:15:39 +0000 (17:15 +1100)
commitb7bce570430e42229fb63f775fcbb10f38b83c71
treea0ab15ac85ff5a9adf3f5ba4bb8c0b87488c0756
parent476652297f94a2e5e5ef29e734b0da37ade94110
powerpc/kvm: Force cast endianness of KVM shared regs

Sparse reports endianness mismatches in the KVM shared regs getter and
setter helpers.

This code has dynamic endianness behind a safe interface, so a force is
warranted here to tell sparse this is OK.

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-8-bgray@linux.ibm.com
arch/powerpc/include/asm/kvm_ppc.h