Re: [PATCH v2] powerpc/mm/radix: use do/while(0) trick for single statement block

2018-04-23 Thread Randy Dunlap
On 04/23/18 12:36, Mathieu Malaterre wrote: > In commit 7a22d6321c3d ("powerpc/mm/radix: Update command line parsing for > disable_radix") an `if` statement was added for a possible empty body > (prom_debug). > > Fix the following warning, treated as error with W=1: > >

[PATCH v2] powerpc/mm/radix: use do/while(0) trick for single statement block

2018-04-23 Thread Mathieu Malaterre
In commit 7a22d6321c3d ("powerpc/mm/radix: Update command line parsing for disable_radix") an `if` statement was added for a possible empty body (prom_debug). Fix the following warning, treated as error with W=1: arch/powerpc/kernel/prom_init.c:656:46: error: suggest braces around empty body