Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9F8FDC433EF for ; Wed, 6 Apr 2022 13:27:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0EE2383DF1; Wed, 6 Apr 2022 15:27:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="EPWhkBv1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9AB5F83DEB; Wed, 6 Apr 2022 15:27:09 +0200 (CEST) Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AC71783DBE for ; Wed, 6 Apr 2022 15:27:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from ssl.serverraum.org (web.serverraum.org [172.16.0.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 10CBB22248; Wed, 6 Apr 2022 15:26:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1649251619; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=NE129jT/y1m7jUJKnK1Qk4+sxKoWKrBUeTsQ8qxMnN4=; b=EPWhkBv1GJsrdgGwKBdG1NICCBugQGBepZN7IS+0S7xIxfo2d6KnSYEFD7EXFefV9HN5he xLNGAL50qMxCvwiVniSq9jKh3LMP6GPmRh+2fbMz5W/tg51xUAJqxTYl9boXBBmzeY5tqf qQO2RQsMxzahQ9j8dI/yogWpoOXqUj0= MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 06 Apr 2022 15:26:58 +0200 From: Michael Walle To: Tom Rini Cc: u-boot@lists.denx.de Subject: Re: [PATCH] armv8: sec_firmware: drop unneeded ARMV8_SEC_FIRMWARE_SUPPORT check In-Reply-To: <20220406130934.GZ9042@bill-the-cat> References: <20211126161136.66006-1-michael@walle.cc> <20220406130934.GZ9042@bill-the-cat> User-Agent: Roundcube Webmail/1.4.13 Message-ID: <099e1200a87bce7ecaaf70273cadd0e3@walle.cc> X-Sender: michael@walle.cc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Am 2022-04-06 15:09, schrieb Tom Rini: > 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 >> --- >> 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. Ahh, right, I guess that is because that ifdeffery is needed to distiguish the SPL build. In this case, this can be dropped. Sorry for the noise, -michael