From patchwork Wed Nov 20 23:00:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1198573 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="lNdScTuE"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 47JJ871SQXz9sPT for ; Thu, 21 Nov 2019 10:00:55 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id B4E26C21E7D; Wed, 20 Nov 2019 23:00:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id B843BC21DA2; Wed, 20 Nov 2019 23:00:48 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4C4C3C21DA2; Wed, 20 Nov 2019 23:00:47 +0000 (UTC) Received: from smtpcmd0871.aruba.it (smtpcmd0871.aruba.it [62.149.156.71]) by lists.denx.de (Postfix) with ESMTP id C0D53C21C2C for ; Wed, 20 Nov 2019 23:00:46 +0000 (UTC) Received: from ubuntu.localdomain ([146.241.135.160]) by smtpcmd08.ad.aruba.it with bizsmtp id UP0j2100Q3ToopN01P0k4t; Thu, 21 Nov 2019 00:00:46 +0100 From: Giulio Benetti To: u-boot@lists.denx.de Date: Thu, 21 Nov 2019 00:00:41 +0100 Message-Id: <20191120230041.35611-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aruba.it; s=a1; t=1574290846; bh=bJotvq62ciZdvLX4hNMuoOR/060gUa4PwcRdi8VKbso=; h=From:To:Subject:Date:MIME-Version; b=lNdScTuEcHCQlHLkiK3NNTCleof/Q7K9xynRI8LAmsm5fD1k+4Qd7FLQmfskuNIKg s5NiKp5zPeKVkxb7pOb3AYBYG+KT9KMOeG8AuCvM1FacbiFa49JgVE4ehaXG5B+Cdy /fpAztH2WKbq4ZPb5ofBIMYsBRF3lbTcoKDXFNnsLZr4w1yMWVB+U9XL6a3LmsmAZN YQcj6b7GeZloqqttFaQlKRp1WV6vAUX1B+CHAcHvk4BmdAn5WUa5cL2lFlo9c/eiJt UNAAuuRPURPzAZNtZzi1BQfrm91rng0P0ZnJ9We3najDQQRVZli93Ofop4hxU7A+By MHoWuGp2g+u7Q== Cc: Alexey Brodkin Subject: [U-Boot] [PATCH] armv7m: cache: add invalidate_icache_all() stub X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" This commit: https://gitlab.denx.de/u-boot/u-boot/commit/d409c962169bd293e39386d0ddfa64d5222a3be4 causes build failure with ICACHE enabled. This is due to missing invalidate_icache_all() stub. Let's add empty invalidate_icache_all() in the case where ICACHE is not enabled. Signed-off-by: Giulio Benetti --- arch/arm/cpu/armv7m/cache.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/cpu/armv7m/cache.c b/arch/arm/cpu/armv7m/cache.c index 0ccd7519a1..e3c5edce7a 100644 --- a/arch/arm/cpu/armv7m/cache.c +++ b/arch/arm/cpu/armv7m/cache.c @@ -337,6 +337,11 @@ void icache_disable(void) isb(); /* subsequent instructions fetch see cache disable effect */ } #else +void invalidate_icache_all(void) +{ + return 0; +} + void icache_enable(void) { return;