From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rix Date: Mon, 6 Jul 2009 11:47:59 -0500 Subject: [U-Boot] [PATCH 2/2] OMAP3 Fix compiler warning for get_device_type In-Reply-To: <1246898879-6567-2-git-send-email-Tom.Rix@windriver.com> References: <1246898879-6567-1-git-send-email-Tom.Rix@windriver.com> <1246898879-6567-2-git-send-email-Tom.Rix@windriver.com> Message-ID: <1246898879-6567-3-git-send-email-Tom.Rix@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de When MAKEALL arm is run, the omap3 board *.ERR files contains this warning cpu.c: In function 'cleanup_before_linux': cpu.c:64: warning: implicit declaration of function 'get_device_type' To fix this warning, use the declaration of get_device_type in sys_proto.h Signed-off-by: Tom Rix --- cpu/arm_cortexa8/cpu.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/cpu/arm_cortexa8/cpu.c b/cpu/arm_cortexa8/cpu.c index 7f57ee9..ab59ab0 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); -- 1.6.0.5