linux/arch/powerpc/sysdev/xive
Benjamin Gray 945dc61d78 powerpc/xive: Fix endian conversion size
[ Upstream commit ff7a60ab1e ]

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]: 80e2b1dc73/hw/xive.c (L3854)

Fixes: 88ec6b93c8 ("powerpc/xive: add OPAL extensions for the XIVE native exploitation support")
Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231011053711.93427-2-bgray@linux.ibm.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-11-20 11:08:26 +01:00
..
common.c powerpc/xive: Change IRQ domain to a tree domain 2021-11-25 09:48:44 +01:00
Kconfig powerpc/xive: Change IRQ domain to a tree domain 2021-11-25 09:48:44 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
native.c powerpc/xive: Fix endian conversion size 2023-11-20 11:08:26 +01:00
spapr.c powerpc/xive: add missing iounmap() in error path in xive_spapr_populate_irq_data() 2022-12-31 13:14:35 +01:00
xive-internal.h powerpc/xive: Use the "ibm, chip-id" property only under PowerNV 2021-04-17 10:40:51 +10:00