Re: [PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-08 Thread Joe Perches
On Fri, 2017-12-08 at 22:51 +1100, Michael Ellerman wrote: > Balbir Singh writes: > > > On Thu, Dec 7, 2017 at 10:01 PM, Colin King > > wrote: > > > From: Colin Ian King > > > > > > Use the ARRAY_SIZE macro on several

Re: [PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-08 Thread Joe Perches
On Fri, 2017-12-08 at 22:51 +1100, Michael Ellerman wrote: > Balbir Singh writes: > > > On Thu, Dec 7, 2017 at 10:01 PM, Colin King > > wrote: > > > From: Colin Ian King > > > > > > Use the ARRAY_SIZE macro on several arrays to determine their size. > > > Improvement suggested by coccinelle.

Re: [PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-08 Thread Michael Ellerman
Balbir Singh writes: > On Thu, Dec 7, 2017 at 10:01 PM, Colin King wrote: >> From: Colin Ian King >> >> Use the ARRAY_SIZE macro on several arrays to determine their size. >> Improvement suggested by coccinelle. > >

Re: [PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-08 Thread Michael Ellerman
Balbir Singh writes: > On Thu, Dec 7, 2017 at 10:01 PM, Colin King wrote: >> From: Colin Ian King >> >> Use the ARRAY_SIZE macro on several arrays to determine their size. >> Improvement suggested by coccinelle. > > This file is taken from binutils and re-licensed. Keeping the file > as-is

Re: [PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-07 Thread Balbir Singh
On Thu, Dec 7, 2017 at 10:01 PM, Colin King wrote: > From: Colin Ian King > > Use the ARRAY_SIZE macro on several arrays to determine their size. > Improvement suggested by coccinelle. > This file is taken from binutils and re-licensed.

Re: [PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-07 Thread Balbir Singh
On Thu, Dec 7, 2017 at 10:01 PM, Colin King wrote: > From: Colin Ian King > > Use the ARRAY_SIZE macro on several arrays to determine their size. > Improvement suggested by coccinelle. > This file is taken from binutils and re-licensed. Keeping the file as-is helps apply newer patches easily on

[PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-07 Thread Colin King
From: Colin Ian King Use the ARRAY_SIZE macro on several arrays to determine their size. Improvement suggested by coccinelle. Signed-off-by: Colin Ian King --- arch/powerpc/xmon/ppc-opc.c | 12 1 file changed, 4 insertions(+), 8

[PATCH] powerpc/xmon: use ARRAY_SIZE on various array sizing calculations

2017-12-07 Thread Colin King
From: Colin Ian King Use the ARRAY_SIZE macro on several arrays to determine their size. Improvement suggested by coccinelle. Signed-off-by: Colin Ian King --- arch/powerpc/xmon/ppc-opc.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git