[U-Boot] [PATCH 1/1] OMAP3 Fix compiler warning for v7_flush_dcache_all

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Thu Jul 2 23:00:18 CEST 2009


On 15:04 Tue 30 Jun     , Tom Rix wrote:
> 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 <Tom.Rix at windriver.com>
> ---
>  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 fcb5775..ab1cfc7 100644
> --- a/cpu/arm_cortexa8/cpu.c
> +++ b/cpu/arm_cortexa8/cpu.c
> @@ -35,6 +35,9 @@
>  #include <command.h>
>  #include <asm/system.h>
>  #include <asm/cache.h>
> +#ifndef CONFIG_L2_OFF
> +#include <asm/arch/sys_proto.h>
> +#endif
>  
v7_flush_dcache_all is not omap3 specific but armv7 specific so we must no
need to depend on arch specific header

Best Regards,
J.


More information about the U-Boot mailing list