From patchwork Wed Aug 10 07:08:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 73605 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp265725qga; Wed, 10 Aug 2016 00:29:20 -0700 (PDT) X-Received: by 10.28.165.207 with SMTP id o198mr1656141wme.87.1470814160218; Wed, 10 Aug 2016 00:29:20 -0700 (PDT) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id lv10si1602464wjb.95.2016.08.10.00.29.19; Wed, 10 Aug 2016 00:29:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EEFFFA755F; Wed, 10 Aug 2016 09:29:11 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rl4uY1erokdl; Wed, 10 Aug 2016 09:29:11 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B4691A7541; Wed, 10 Aug 2016 09:20:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3678A4BA7F for ; Wed, 10 Aug 2016 09:07:42 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id maIQDaCmLFun for ; Wed, 10 Aug 2016 09:07:41 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by theia.denx.de (Postfix) with ESMTPS id 38D634BDE9 for ; Wed, 10 Aug 2016 09:07:21 +0200 (CEST) Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id u7A76xSo005792; Wed, 10 Aug 2016 16:07:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com u7A76xSo005792 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1470812821; bh=CT4XayLf4u0E+6/C1fAfKIdW458/W6qWH8D7HF3+KKQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b/Ny+riAhRmtTX5T+GeiP8KpTLuK/lH3SVFX2IyMR+w3jGD5jyGwkYLrZhmCbzw41 MhuCIuBGJ2b1fdvx6t4ggLaCkm1cDyCGIi+2VF82Y6cNIeoxx2umt4PB3+p+6d4erY 7L36h6rtd/k0sNrrPKIk0v3Of/M15eQxTSO6RCgKjxCjtErOKC2YvHu54sEglAWIvv PuotiEsgyra5l2OFVvmJzuyd/wNoakUDV8m0adnvMFaSYsMcgkC3dFqNvhKfM85fVr uVDatuVKGOaxNp4amCkDQFBfvcEm935hZjUyGGzZS5hL++cunmhM+JoKy5jMb4CZoC VHajK7djS7Omg== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 10 Aug 2016 16:08:38 +0900 Message-Id: <1470812929-21178-4-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1470812929-21178-1-git-send-email-yamada.masahiro@socionext.com> References: <1470812929-21178-1-git-send-email-yamada.masahiro@socionext.com> Subject: [U-Boot] [PATCH 03/14] ARM: uniphier: do not compile v7_outer_cache_disable if L2 is disabled X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" If CONFIG_UNIPHIER_L2CACHE_ON is undefined, the L2 cache is never enabled, so there is no need for v7_outer_cache_disable(). The weak stub avoids the compile error anyway. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/arm32/cache-uniphier.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot diff --git a/arch/arm/mach-uniphier/arm32/cache-uniphier.c b/arch/arm/mach-uniphier/arm32/cache-uniphier.c index a210835..66e9f6b 100644 --- a/arch/arm/mach-uniphier/arm32/cache-uniphier.c +++ b/arch/arm/mach-uniphier/arm32/cache-uniphier.c @@ -183,7 +183,6 @@ void v7_outer_cache_enable(void) tmp |= UNIPHIER_SSCC_ON; writel(tmp, UNIPHIER_SSCC); } -#endif void v7_outer_cache_disable(void) { @@ -193,6 +192,7 @@ void v7_outer_cache_disable(void) tmp &= ~UNIPHIER_SSCC_ON; writel(tmp, UNIPHIER_SSCC); } +#endif void enable_caches(void) {