Re: [PATCH] bnx2x: use ARRAY_SIZE where possible

2012-12-23 Thread Eilon Greenstein
On Thu, 2012-12-20 at 14:11 -0500, Sasha Levin wrote: > Signed-off-by: Sasha Levin Hi Sasha, I have no problem with this cosmetic change, but it should probably be sent to net-next when it is open again. When you do resubmit it, you can add my ACK: Acked-by Eilon Greenstein Thanks, Ei

[PATCH] checkpatch: add double empty line check

2012-11-16 Thread Eilon Greenstein
Signed-off-by: Eilon Greenstein --- scripts/checkpatch.pl |7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 21a9f5d..7a9c153 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3579,6 +3579,13 @@ sub process

Re: [PATCH] checkpatch: add double empty line check

2012-11-16 Thread Eilon Greenstein
On Fri, 2012-11-16 at 11:55 -0800, David Rientjes wrote: > On Fri, 16 Nov 2012, Eilon Greenstein wrote: > > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > > index 21a9f5d..7a9c153 100755 > > --- a/scripts/checkpatch.pl > > +++ b/scripts/checkpatch.pl

Re: [PATCH] checkpatch: add double empty line check

2012-11-17 Thread Eilon Greenstein
On Fri, 2012-11-16 at 16:50 -0800, Joe Perches wrote: Hi Joe, thanks for replying. > On Fri, 2012-11-16 at 22:04 +0200, Eilon Greenstein wrote: > > On Fri, 2012-11-16 at 11:55 -0800, David Rientjes wrote: > > > On Fri, 16 Nov 2012, Eilon Greenstein wrote: > > > This

[PATCH v2] checkpatch: add double empty line check

2012-11-17 Thread Eilon Greenstein
Changes from previous attempt: - Use CHK instead of WARN - Issue only one warning per empty lines block Signed-off-by: Eilon Greenstein --- scripts/checkpatch.pl |8 1 file changed, 8 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 21a9f5d..13d264f

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-20 Thread Eilon Greenstein
On Tue, 2012-11-20 at 11:52 +, Andy Whitcroft wrote: Andy, thanks for reviewing this patch. > On Sat, Nov 17, 2012 at 01:17:37PM +0200, Eilon Greenstein wrote: > > Changes from previous attempt: > > - Use CHK instead of WARN > > - Issue only one warning per empty lines

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-20 Thread Eilon Greenstein
On Tue, 2012-11-20 at 14:43 +, Andy Whitcroft wrote: > > > Also this fails if the fragment > > > is at the top of the hunk emiting a perl warning. > > > > I did not see this warning. Can you please share this example? I tried > > adding a couple of empty lines at the beginning of a file and i

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-20 Thread Eilon Greenstein
On Tue, 2012-11-20 at 15:44 +, Andy Whitcroft wrote: > On Tue, Nov 20, 2012 at 05:07:07PM +0200, Eilon Greenstein wrote: > > On Tue, 2012-11-20 at 14:43 +, Andy Whitcroft wrote: > > > > > > > Also this fails if the fragment > > > > > is

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-20 Thread Eilon Greenstein
On Tue, 2012-11-20 at 16:14 +, Andy Whitcroft wrote: > On Tue, Nov 20, 2012 at 06:06:10PM +0200, Eilon Greenstein wrote: > > I'm only testing the nextline if the current line is newly added. If I > > got it right, when a line is newly added, the next line can be: > >

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-20 Thread Eilon Greenstein
On Tue, 2012-11-20 at 18:36 +0200, Andy Whitcroft wrote: > On Tue, Nov 20, 2012 at 04:14:17PM +, Andy Whitcroft wrote: > > On Tue, Nov 20, 2012 at 06:06:10PM +0200, Eilon Greenstein wrote: > > > I'm only testing the nextline if the current line is newly added. If I >

Re: [PATCH v3 net-next 3/4] ixgbe: Add support for ndo_ll_poll

2013-05-21 Thread Eilon Greenstein
On Tue, 2013-05-21 at 09:54 +0300, Eliezer Tamir wrote: > On 20/05/2013 23:20, Or Gerlitz wrote: > > On Mon, May 20, 2013 at 1:16 PM, Eliezer Tamir > > wrote: > >> Add the ixgbe driver code implementing ndo_ll_poll. > >> It should be easy for other drivers to do something similar > >> in order to

Re: [PATCH v3 net-next 3/4] ixgbe: Add support for ndo_ll_poll

2013-05-21 Thread Eilon Greenstein
On Tue, 2013-05-21 at 11:21 +0300, Or Gerlitz wrote: > On Tue, May 21, 2013 at 10:06 AM, Eilon Greenstein > wrote: > > Or - at least for the bnx2x, it is easy to add support for this new ndo. > > Do you understand what's the equivalent of that mysterious module > par

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-20 Thread Eilon Greenstein
On Tue, 2012-11-20 at 20:11 +, Andy Whitcroft wrote: > > > > Actually the version I sent should indeed cope with the deleted lines > > regardless of order. It was cirtainly intended to. > > ... and I think I thought of a couple more corner cases neither solution > will find. So I am going t

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-21 Thread Eilon Greenstein
On Tue, 2012-11-20 at 15:41 -0800, Joe Perches wrote: > On Tue, 2012-11-20 at 23:19 +, Andy Whitcroft wrote: > > On Tue, Nov 20, 2012 at 01:58:48PM -0800, Joe Perches wrote: > > > > > +# check for multiple blank lines, warn only on the second one in a block > > > + if ($rawline =~ /^.\

Re: [PATCH v2] checkpatch: add double empty line check

2012-11-21 Thread Eilon Greenstein
On Wed, 2012-11-21 at 07:01 -0800, Joe Perches wrote: > checkpatch isn't a perfect tool. Given how it's constructed, > I doubt it ever could be. Joe - I completely agree, this is why I'm not to concern about the potential miss in the version I suggested. Thanks, Eilon -- To unsubscribe from t