[PATCH] armv8: sec_firmware: drop unneeded ARMV8_SEC_FIRMWARE_SUPPORT check

Tom Rini trini at konsulko.com
Wed Apr 6 15:09:34 CEST 2022


On Fri, Nov 26, 2021 at 05:11:36PM +0100, Michael Walle wrote:

> This module will only be compiled if this symbol is set. Remove the
> useless check. While at it, invert the return code, to return 0 if the
> function succeeds. The only user of this function in
> arch/arm/cpu/armv8/fsl-layerscape/fdt.c doesn't check the return code
> anyway, so its safe change it.
> 
> Signed-off-by: Michael Walle <michael at walle.cc>
> ---
>  arch/arm/cpu/armv8/sec_firmware.c | 20 +++++++++-----------
>  1 file changed, 9 insertions(+), 11 deletions(-)

Currently this causes a large number of platforms to fail to build such
as ls1012aqds_tfa_SECURE_BOOT, please fix and resubmit, thanks.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220406/34a78e05/attachment.sig>


More information about the U-Boot mailing list