From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hong Xu Date: Fri, 19 Aug 2011 17:59:16 +0800 Subject: [U-Boot] [PATCH 2/3 v2] ARM: ARM1136 - Remove flush_cache from arch/arm/lib/cache.c In-Reply-To: <201108191140.47097.marek.vasut@gmail.com> References: <1313745795-1326-1-git-send-email-hong.xu@atmel.com> <1313745795-1326-2-git-send-email-hong.xu@atmel.com> <201108191140.47097.marek.vasut@gmail.com> Message-ID: <4E4E33F4.9040005@atmel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, On 08/19/2011 05:40 PM, Marek Vasut wrote: > On Friday, August 19, 2011 11:23:14 AM Hong Xu wrote: >> arch/arm/lib/cache.c is cleaned and no real cache operation will be >> defined in this file. A new file arch/arm/cpu/arm1136/cache.c is >> created. This file will define the real cache operations. >> >> Signed-off-by: Hong Xu >> Tested-by: Elen Song >> CC: Albert Aribaud >> --- >> Since V2 >> Removed redundant ifdef for CONFIG_OMAP2420 || CONFIG_ARM1136 >> >> arch/arm/cpu/arm1136/Makefile | 2 +- >> arch/arm/cpu/arm1136/cache.c | 31 +++++++++++++++++++++++++++++++ >> 2 files changed, 32 insertions(+), 1 deletions(-) >> create mode 100644 arch/arm/cpu/arm1136/cache.c >> >> diff --git a/arch/arm/cpu/arm1136/Makefile b/arch/arm/cpu/arm1136/Makefile >> index 930e0d1..5b5f330 100644 >> --- a/arch/arm/cpu/arm1136/Makefile >> +++ b/arch/arm/cpu/arm1136/Makefile [...] >> + */ >> + >> +#include >> + >> +void flush_cache(unsigned long start, unsigned long size) >> +{ >> + void arm1136_cache_flush(void); > > Whoa this void on the left side is strange ;-) Just copied from original file. ;-) Move it out and change to "extern void arm1136_cache_flush(void);", OK for you? BR, Eric > >> + >> + arm1136_cache_flush(); >> +}