Re: [PATCH] use array_size macro

2007-09-28 Thread Jeff Dike
On Fri, Sep 28, 2007 at 04:45:06PM +0200, Roel Kluin wrote: > Thanks for noting me. I usually pull the masters branch, so my > previously submitted patches are against that. Apparently I have to > apply the -mm patchset before sending patches. Is there a git branch > to pull from for that? I

Re: [PATCH] use array_size macro

2007-09-28 Thread Randy Dunlap
On Fri, 28 Sep 2007 16:45:06 +0200 Roel Kluin wrote: > Jeff Dike wrote: > > On Fri, Sep 28, 2007 at 12:56:31PM +0200, Roel Kluin wrote: > >> arch/um/kernel/tt/ptproxy/ptrace.c | 12 ++-- > > > > I don't know what you're diffing against, but this file is history in > > -mm, and

Re: [PATCH] use array_size macro

2007-09-28 Thread Roel Kluin
Jeff Dike wrote: > On Fri, Sep 28, 2007 at 12:56:31PM +0200, Roel Kluin wrote: >> arch/um/kernel/tt/ptproxy/ptrace.c | 12 ++-- > > I don't know what you're diffing against, but this file is history in > -mm, and will be gone in mainline after 2.6.23. > > Jeff > Thanks for noting

Re: [PATCH] use array_size macro

2007-09-28 Thread Jeff Dike
On Fri, Sep 28, 2007 at 12:56:31PM +0200, Roel Kluin wrote: > arch/um/kernel/tt/ptproxy/ptrace.c | 12 ++-- I don't know what you're diffing against, but this file is history in -mm, and will be gone in mainline after 2.6.23. Jeff -- Work email -

Re: [PATCH] use array_size macro

2007-09-28 Thread Roel Kluin
Please use this one instead. it also removes an unnecessary #define. This patch changes code to use the ARRAY_SIZE macro. This patch is the result of: find -name *.[chsS] | xargs sed -i "s/sizeof(\(\w*\))[ \t]*\/[ \t]*sizeof(\1\[0\])/ARRAY_SIZE(\1)/g" Signed-off-by: Roel Kluin <[EMAIL

[PATCH] use array_size macro

2007-09-28 Thread Roel Kluin
This patch changes code to use the ARRAY_SIZE macro. This patch is the result of: find -name *.[chsS] | xargs sed -i "s/sizeof(\(\w*\))[ \t]*\/[ \t]*sizeof(\1\[0\])/ARRAY_SIZE(\1)/g" Signed-off-by: Roel Kluin <[EMAIL PROTECTED]> --- diff --git a/arch/arm/kernel/dma-isa.c

Re: [PATCH] use array_size macro

2007-09-28 Thread Jeff Dike
On Fri, Sep 28, 2007 at 12:56:31PM +0200, Roel Kluin wrote: arch/um/kernel/tt/ptproxy/ptrace.c | 12 ++-- I don't know what you're diffing against, but this file is history in -mm, and will be gone in mainline after 2.6.23. Jeff -- Work email -

Re: [PATCH] use array_size macro

2007-09-28 Thread Roel Kluin
Please use this one instead. it also removes an unnecessary #define. This patch changes code to use the ARRAY_SIZE macro. This patch is the result of: find -name *.[chsS] | xargs sed -i s/sizeof(\(\w*\))[ \t]*\/[ \t]*sizeof(\1\[0\])/ARRAY_SIZE(\1)/g Signed-off-by: Roel Kluin [EMAIL PROTECTED]

Re: [PATCH] use array_size macro

2007-09-28 Thread Jeff Dike
On Fri, Sep 28, 2007 at 04:45:06PM +0200, Roel Kluin wrote: Thanks for noting me. I usually pull the masters branch, so my previously submitted patches are against that. Apparently I have to apply the -mm patchset before sending patches. Is there a git branch to pull from for that? I have a

[PATCH] use array_size macro

2007-09-28 Thread Roel Kluin
This patch changes code to use the ARRAY_SIZE macro. This patch is the result of: find -name *.[chsS] | xargs sed -i s/sizeof(\(\w*\))[ \t]*\/[ \t]*sizeof(\1\[0\])/ARRAY_SIZE(\1)/g Signed-off-by: Roel Kluin [EMAIL PROTECTED] --- diff --git a/arch/arm/kernel/dma-isa.c b/arch/arm/kernel/dma-isa.c

Re: [PATCH] use array_size macro

2007-09-28 Thread Roel Kluin
Jeff Dike wrote: On Fri, Sep 28, 2007 at 12:56:31PM +0200, Roel Kluin wrote: arch/um/kernel/tt/ptproxy/ptrace.c | 12 ++-- I don't know what you're diffing against, but this file is history in -mm, and will be gone in mainline after 2.6.23. Jeff Thanks for noting me. I

Re: [PATCH] use array_size macro

2007-09-28 Thread Randy Dunlap
On Fri, 28 Sep 2007 16:45:06 +0200 Roel Kluin wrote: Jeff Dike wrote: On Fri, Sep 28, 2007 at 12:56:31PM +0200, Roel Kluin wrote: arch/um/kernel/tt/ptproxy/ptrace.c | 12 ++-- I don't know what you're diffing against, but this file is history in -mm, and will be gone in

[PATCH] Use ARRAY_SIZE() macro in i386 relocs.c file

2006-12-17 Thread Robert P. J. Day
Change the explicit code in the relocs.c file to use ARRAY_SIZE() and add a definition of ARRAY_SIZE() since this is a userspace program and wouldn't include kernel.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- As Randy Dunlap pointed out, the relocs.c file is a userspace file

[PATCH] Use ARRAY_SIZE() macro in i386 relocs.c file

2006-12-17 Thread Robert P. J. Day
Change the explicit code in the relocs.c file to use ARRAY_SIZE() and add a definition of ARRAY_SIZE() since this is a userspace program and wouldn't include kernel.h. Signed-off-by: Robert P. J. Day [EMAIL PROTECTED] --- As Randy Dunlap pointed out, the relocs.c file is a userspace file