From patchwork Sat Jan 14 18:32:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 136094 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 583CFB6F67 for ; Sun, 15 Jan 2012 05:33:18 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CAB0D283AF; Sat, 14 Jan 2012 19:33:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 EvotSGYF1ZOE; Sat, 14 Jan 2012 19:33:16 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 00656283B0; Sat, 14 Jan 2012 19:33:14 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AAF01283B0 for ; Sat, 14 Jan 2012 19:33:12 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 Op7yFgzCV1qF for ; Sat, 14 Jan 2012 19:33:12 +0100 (CET) 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 mail-ey0-f172.google.com (mail-ey0-f172.google.com [209.85.215.172]) by theia.denx.de (Postfix) with ESMTPS id 2DD13283AF for ; Sat, 14 Jan 2012 19:33:10 +0100 (CET) Received: by eaad11 with SMTP id d11so581006eaa.3 for ; Sat, 14 Jan 2012 10:33:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:mime-version :content-type:content-transfer-encoding; bh=28XyyNWrTpFbV8aypRPOtptem6UByT+w03aFk8+bnAM=; b=wenN0uWlBnTUeKHJtgyCI7QPflYAKP058gEhXBaBxPdPBsjQ/SZzUwDKIuGlzrgwXa zL8+QYoJRSRz2K4fOgFoR01K/KpW7kjNMFCvxqgSA1o33D5t7TIwntIzDs3EHJbiaTsU LirXTochn+xJ0s+oTGupCECchQLVXiY2eBWJA= Received: by 10.213.8.208 with SMTP id i16mr1669293ebi.57.1326565990482; Sat, 14 Jan 2012 10:33:10 -0800 (PST) Received: from Pali-EliteBook.kolej.mff.cuni.cz (pali.kolej.mff.cuni.cz. [78.128.193.202]) by mx.google.com with ESMTPS id s16sm47197672eef.2.2012.01.14.10.33.08 (version=SSLv3 cipher=OTHER); Sat, 14 Jan 2012 10:33:09 -0800 (PST) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: u-boot@lists.denx.de Date: Sat, 14 Jan 2012 19:32:39 +0100 Message-Id: <1326565959-29371-1-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.5.4 MIME-Version: 1.0 Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [U-Boot] [PATCH] omap3: board.c - Fix compile warnings X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de * This patch fix compile warnings when CONFIG_SYS_L2CACHE_OFF is enabled board.c:48:13: warning: ‘omap3_invalidate_l2_cache_secure’ declared ‘static’ but never defined board.c:373:13: warning: ‘omap3_update_aux_cr’ defined but not used Signed-off-by: Pali Rohár --- arch/arm/cpu/armv7/omap3/board.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/cpu/armv7/omap3/board.c b/arch/arm/cpu/armv7/omap3/board.c index 1f33c63..52514ae 100644 --- a/arch/arm/cpu/armv7/omap3/board.c +++ b/arch/arm/cpu/armv7/omap3/board.c @@ -45,7 +45,10 @@ /* Declarations */ extern omap3_sysinfo sysinfo; static void omap3_setup_aux_cr(void); + +#ifndef CONFIG_SYS_L2CACHE_OFF static void omap3_invalidate_l2_cache_secure(void); +#endif static const struct gpio_bank gpio_bank_34xx[6] = { { (void *)OMAP34XX_GPIO1_BASE, METHOD_GPIO_24XX }, @@ -370,6 +373,7 @@ static void omap3_update_aux_cr_secure(u32 set_bits, u32 clear_bits) } } +#ifndef CONFIG_SYS_L2CACHE_OFF static void omap3_update_aux_cr(u32 set_bits, u32 clear_bits) { u32 acr; @@ -382,6 +386,7 @@ static void omap3_update_aux_cr(u32 set_bits, u32 clear_bits) /* Write ACR - affects non-secure banked bits */ asm volatile ("mcr p15, 0, %0, c1, c0, 1" : : "r" (acr)); } +#endif static void omap3_setup_aux_cr(void) {