]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
arm/arm64: smccc-1.1: Make return values unsigned long
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 24 Aug 2018 14:08:29 +0000 (15:08 +0100)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:51:35 +0000 (19:51 -0600)
commit2d95dcda860c08ec6204b805c20c2b55b507b23e
treeaa95a85e56663d5a152f10a915bc91f3027ddca4
parent304d5fa970dffdb49923d93f9ff169cc5df46a1c
arm/arm64: smccc-1.1: Make return values unsigned long

BugLink: https://bugs.launchpad.net/bugs/1836287
[ Upstream commit 1d8f574708a3fb6f18c85486d0c5217df893c0cf ]

An unfortunate consequence of having a strong typing for the input
values to the SMC call is that it also affects the type of the
return values, limiting r0 to 32 bits and r{1,2,3} to whatever
was passed as an input.

Let's turn everything into "unsigned long", which satisfies the
requirements of both architectures, and allows for the full
range of return values.

Reported-by: Julien Grall <julien.grall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
include/linux/arm-smccc.h