Commit 5d6c1cce authored by Eric Biggers's avatar Eric Biggers
Browse files

ANDROID: trusty: fix compiler warnings for 32-bit builds



On arm32, the call to min() in trusty_share_memory() uses types
size_t and unsigned long, which fails the strict type checking and
causes a compiler warning.  Use min_t(size_t, ...) instead.

Also in trusty_share_memory(), on arm32 the value of smc_ret.r3 isn't
correctly used when building ffa_handle.  This causes a
-Wshift-count-overflow compiler warning, but it appears to be an actual
bug as well.  Fix it.

Change-Id: I981088646d97baef57f85688ae0159574ed6dfe8
Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
parent e3e543f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment