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)
committerWill Deacon <will.deacon@arm.com>
Wed, 29 Aug 2018 10:42:20 +0000 (11:42 +0100)
commit1d8f574708a3fb6f18c85486d0c5217df893c0cf
treeed4ddd0ac3cfb2f14206a832d3ddf265b2f0bcbe
parentafce0cc9ad8aa510650e781a51e43c26e2a34cf6
arm/arm64: smccc-1.1: Make return values unsigned long

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>
include/linux/arm-smccc.h