[PATCH] ARM: Fix warning with gcc 4.5.1 in alignment fixup

Jamie Iles jamie at jamieiles.com
Thu Jan 6 10:33:44 EST 2011


On Tue, Dec 07, 2010 at 08:28:44PM +0000, Jamie Iles wrote:
> With GCC 4.5.1 we get the following warning:
> 
> 	  CC      arch/arm/mm/alignment.o
> 	arch/arm/mm/alignment.c: In function 'do_alignment':
> 	arch/arm/mm/alignment.c:720:21: warning: 'offset.un' may be used
> 	uninitialized in this function
> 
> This warning is triggered for the LDM/STM instructions which don't have
> a register offset so set the offset to 0 to keep GCC happy.
> 
> Cc: George G. Davis <gdavis at mvista.com>
> Cc: Min Zhang <mzhang at mvista.com>
> Signed-off-by: Jamie Iles <jamie at jamieiles.com>
> ---

Hi Russell,

Ok to send this one to the patch system?

Jamie



More information about the linux-arm-kernel mailing list