From: Tom Rix Date: Tue, 30 Jun 2009 20:04:13 +0000 (-0500) Subject: OMAP3 Fix compiler warning for v7_flush_dcache_all X-Git-Tag: v2009.08-rc1~69 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6bb6e6c75ec4ef496f00f7f530e549d3e073c5de;p=u-boot OMAP3 Fix compiler warning for v7_flush_dcache_all On build of omap3 targets in MAKEALL, the *.ERR files have cpu.c: In function 'cleanup_before_linux': cpu.c:64: warning: implicit declaration of function 'v7_flush_dcache_all' cpu.c:64: warning: implicit declaration of function 'get_device_type The functions v7_flush_dcache_all and get_device_type are declared in include/asm-arm/arch-omap3/sys_proto.h, so use this file to declare the functions. Signed-off-by: Tom Rix --- diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c index 822ee7d97e..5a5981e405 100644 --- a/cpu/arm_cortexa8/cpu.c +++ b/cpu/arm_cortexa8/cpu.c @@ -35,6 +35,9 @@ #include #include #include +#ifndef CONFIG_L2_OFF +#include +#endif static void cache_flush(void);