Skip to content
Commit 0f8dabe7 authored by Benjamin Gray's avatar Benjamin Gray Committed by Greg Kroah-Hartman
Browse files

powerpc/xive: Fix endian conversion size

[ Upstream commit ff7a60ab ]

Sparse reports a size mismatch in the endian swap. The Opal
implementation[1] passes the value as a __be64, and the receiving
variable out_qsize is a u64, so the use of be32_to_cpu() appears to be
an error.

[1]: https://github.com/open-power/skiboot/blob/80e2b1dc73/hw/xive.c#L3854

Fixes: 88ec6b93

 ("powerpc/xive: add OPAL extensions for the XIVE native exploitation support")
Signed-off-by: default avatarBenjamin Gray <bgray@linux.ibm.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-2-bgray@linux.ibm.com
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent b4bc030a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment