Re: [U-Boot] [PATCH] imx: ventana: Avoid undefined behaviour

2014-09-09 Thread Stefano Babic
On 22/08/2014 09:46, Thierry Reding wrote: > From: Thierry Reding > > The leds array within struct ventana has space for 3 elements, but the > setup_board_gpio() function tries to set up 4 GPIOs for LEDs. Recent > versions of GCC complain about that: > > board/gateworks/gw_ventana/gw_venta

Re: [U-Boot] [PATCH] imx: ventana: Avoid undefined behaviour

2014-08-22 Thread Tim Harvey
On Fri, Aug 22, 2014 at 12:46 AM, Thierry Reding wrote: > From: Thierry Reding > > The leds array within struct ventana has space for 3 elements, but the > setup_board_gpio() function tries to set up 4 GPIOs for LEDs. Recent > versions of GCC complain about that: > > board/gateworks/gw_ve

[U-Boot] [PATCH] imx: ventana: Avoid undefined behaviour

2014-08-22 Thread Thierry Reding
From: Thierry Reding The leds array within struct ventana has space for 3 elements, but the setup_board_gpio() function tries to set up 4 GPIOs for LEDs. Recent versions of GCC complain about that: board/gateworks/gw_ventana/gw_ventana.c: In function 'setup_board_gpio': board/gat