Re: [PATCH] linux/kernel.h: merge ARRAY_AND_SIZE defines

2015-01-04 Thread Rusty Russell
Alex Elder writes: > On 12/23/2014 11:44 PM, Joe Perches wrote: >> On Wed, 2014-12-24 at 14:38 +0900, Masahiro Yamada wrote: >>> ARRAY_AND_SIZE is a useful macro. Its definition is already >>> duplicated in some headers. Move it to include/linux/kernel.h. >> >> I think it's not a good/useful ma

Re: [PATCH] linux/kernel.h: merge ARRAY_AND_SIZE defines

2014-12-24 Thread Alex Elder
On 12/23/2014 11:44 PM, Joe Perches wrote: > On Wed, 2014-12-24 at 14:38 +0900, Masahiro Yamada wrote: >> ARRAY_AND_SIZE is a useful macro. Its definition is already >> duplicated in some headers. Move it to include/linux/kernel.h. > > I think it's not a good/useful macro and > would prefer the

Re: [PATCH] linux/kernel.h: merge ARRAY_AND_SIZE defines

2014-12-23 Thread Joe Perches
On Wed, 2014-12-24 at 14:38 +0900, Masahiro Yamada wrote: > ARRAY_AND_SIZE is a useful macro. Its definition is already > duplicated in some headers. Move it to include/linux/kernel.h. I think it's not a good/useful macro and would prefer the uses expanded instead. The uses of ARRAY_AND_SIZE in

[PATCH] linux/kernel.h: merge ARRAY_AND_SIZE defines

2014-12-23 Thread Masahiro Yamada
ARRAY_AND_SIZE is a useful macro. Its definition is already duplicated in some headers. Move it to include/linux/kernel.h. Signed-off-by: Masahiro Yamada --- arch/arm/mach-mmp/common.h| 1 - arch/arm/mach-pxa/generic.h | 2 -- arch/arm/mach-ux500/db8500-regs.h | 2 -- drivers/pi