From: OTRS Notification Master Date: Mon, 12 Feb 2007 21:30:03 +0100 Subject: [U-Boot-Users] [DNX#2007021242000034] [PATCH] fix imx-regs.h compilation with ELDK-4.0 Message-ID: <1171312203.934783.195499629@castor.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hello list, inside the automatic U-Boot patch tracking system a new ticket [DNX#2007021242000034] was created: > Compiling cpu/arm920t/imx/generic.c under ELDK-4.0 fails with a bunch > of invalid lvalue errors. The patch below fixes this. > > Signed-off-by: Andrew Dyer > > diff --git a/include/asm-arm/arch-imx/imx-regs.h > b/include/asm-arm/arch-imx/imx-regs.h > index 318de22..9ec6d03 100644 > --- a/include/asm-arm/arch-imx/imx-regs.h > +++ b/include/asm-arm/arch-imx/imx-regs.h > @@ -8,9 +8,7 @@ > > # ifndef __ASSEMBLY__ > # define __REG(x) (*((volatile u32 *)(x))) > -# define __REG2(x,y) \ > - ( __builtin_constant_p(y) ? (__REG((x) + (y))) \ > - : (*(volatile u32 *)((u32)&__REG(x) + (y))) ) > +# define __REG2(x,y) (*(volatile u32 *)((u32)&__REG(x) + (y))) > # else > # define __REG(x) (x) > # define __REG2(x,y) ((x)+(y)) > > > -- > Hardware, n.: > The parts of a computer system that can be kicked. Your U-Boot support team