Re: [PATCH] powerpc: Build fix for mpc52xx

2010-03-18 Thread Grant Likely
On Wed, Mar 10, 2010 at 3:03 PM, Jeff Mahoney wrote: > mpc52xx_gpt_wdt_setup is defined as 0, which causes the following build > failure with gcc 4.5, since it's built with -Werror. > > arch/powerpc/platforms/52xx/mpc52xx_gpt.c:761:3: error: statement with no > effect > > Defining it as do { } wh

[PATCH] powerpc: Build fix for mpc52xx

2010-03-10 Thread Jeff Mahoney
mpc52xx_gpt_wdt_setup is defined as 0, which causes the following build failure with gcc 4.5, since it's built with -Werror. arch/powerpc/platforms/52xx/mpc52xx_gpt.c:761:3: error: statement with no effect Defining it as do { } while(0) fixes the problem. Signed-off-by: Jeff Mahoney --- arch/p