From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jean-Christophe PLAGNIOL-VILLARD Date: Wed, 13 May 2009 01:05:30 +0200 Subject: [U-Boot] [PATCHv2 4/4] omap3: use only fixed-size types inside ctrl_structs In-Reply-To: <54f934a823b4e02c5be4991744a0796570bd338d.1242115589.git.mludwig@ultratronik.de> References: <54f934a823b4e02c5be4991744a0796570bd338d.1242115589.git.mludwig@ultratronik.de> Message-ID: <20090512230530.GM479@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > --- > 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 > +#endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */ > + Best Regards, J.