[U-Boot] [PATCHv2 4/4] omap3: use only fixed-size types inside ctrl_structs

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Wed May 13 01:05:30 CEST 2009


On 10:12 Tue 12 May     , Matthias Ludwig wrote:
> replace variable types in ctrl_structs for omap3 by those with
> fixed size (u8, u16, u32).
> Additional ifndef-protection is needed by examples which do not
> compile when including asm/types.h
could explain why and in which case we need it?
> 
> Signed-off-by: Matthias Ludwig <mludwig at ultratronik.de>
> ---
>  include/asm-arm/arch-omap3/cpu.h |  418 ++++++++++++++++++++------------------
>  1 files changed, 221 insertions(+), 197 deletions(-)
> 
> diff --git a/include/asm-arm/arch-omap3/cpu.h b/include/asm-arm/arch-omap3/cpu.h
> index 61a833e..b2c8498 100644
> --- a/include/asm-arm/arch-omap3/cpu.h
> +++ b/include/asm-arm/arch-omap3/cpu.h
> @@ -25,34 +25,40 @@
>  #ifndef _CPU_H
>  #define _CPU_H
>  
> +#if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
> +#include <asm/types.h>
> +#endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */
> +
Best Regards,
J.


More information about the U-Boot mailing list