Re: [PATCH linux-next] power:pkeys: fix bugon.cocci warnings

2022-05-07 Thread Arnd Bergmann
On Sat, May 7, 2022 at 9:04 AM Christophe Leroy wrote: > Le 02/05/2022 à 15:24, Michael Ellerman a écrit : > > CGEL writes: > >> From: Jing Yangyang > >> > >> Use BUG_ON instead of a if condition followed by BUG. > >> > >> ./arch/powerpc/include/asm/book3s/64/pkeys.h:21:2-5:WARNING > >> Use

Re: [PATCH linux-next] power:pkeys: fix bugon.cocci warnings

2022-05-07 Thread Christophe Leroy
Le 02/05/2022 à 15:24, Michael Ellerman a écrit : > CGEL writes: >> From: Jing Yangyang >> >> Use BUG_ON instead of a if condition followed by BUG. >> >> ./arch/powerpc/include/asm/book3s/64/pkeys.h:21:2-5:WARNING >> Use BUG_ON instead of if condition followed by BUG. >>

Re: [PATCH linux-next] power:pkeys: fix bugon.cocci warnings

2022-05-02 Thread Michael Ellerman
CGEL writes: > From: Jing Yangyang > > Use BUG_ON instead of a if condition followed by BUG. > > ./arch/powerpc/include/asm/book3s/64/pkeys.h:21:2-5:WARNING > Use BUG_ON instead of if condition followed by BUG. > ./arch/powerpc/include/asm/book3s/64/pkeys.h:14:2-5:WARNING > Use BUG_ON instead of

Re: [PATCH linux-next] power:pkeys: fix bugon.cocci warnings

2021-08-31 Thread Daniel Axtens
Hi Jing, Thanks for your patch. The patch looks good, but looking at the output of `make coccicheck M=arch/powerpc MODE=report`, it looks like there might be a few other things that we might want to fix. Would it be worth trying to make the arch/powerpc directory free from coccinelle warnings in

[PATCH linux-next] power:pkeys: fix bugon.cocci warnings

2021-08-25 Thread CGEL
From: Jing Yangyang Use BUG_ON instead of a if condition followed by BUG. ./arch/powerpc/include/asm/book3s/64/pkeys.h:21:2-5:WARNING Use BUG_ON instead of if condition followed by BUG. ./arch/powerpc/include/asm/book3s/64/pkeys.h:14:2-5:WARNING Use BUG_ON instead of if condition followed by