RE: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Dotan Barak
Re: checkpatch.pl report about "Missing blank line after > declarations" in a structure definition > > On Mon, 2014-08-04 at 15:19 +, Dotan Barak wrote: > > In our code (I take it as an example), we used > > MLX5_DECLARE_DOORBELL_LOCK, So I guess that the re

Re: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 15:19 +, Dotan Barak wrote: > In our code (I take it as an example), we used MLX5_DECLARE_DOORBELL_LOCK, > So I guess that the regular expression that you mentioned will fail on it > (because the "_" is not allowed to be repeated). > > So, I would change it a little bit

RE: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Dotan Barak
In our code (I take it as an example), we used MLX5_DECLARE_DOORBELL_LOCK, So I guess that the regular expression that you mentioned will fail on it (because the "_" is not allowed to be repeated). So, I would change it a little bit to allow people to use underscore as a word separator. Thanks

Re: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 14:50 +, Dotan Barak wrote: > I think that allowing a prefix is reasonable (to allow modules to add more > flexibility). > I tried the suggested change and it still didn't work for me. > > The following change worked for me: >

RE: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Dotan Barak
vger.kernel.org > Subject: Re: checkpatch.pl report about "Missing blank line after > declarations" in a structure definition > > On Mon, 2014-08-04 at 14:14 +, Dotan Barak wrote: > > Hi Joe. > > > > The patch that you mentioned solved most of the issues, t

Re: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 14:14 +, Dotan Barak wrote: > Hi Joe. > > The patch that you mentioned solved most of the issues, thanks! > > However, there is still one more warning of this type within a struct > declaration. > > # ./checkpatch.pl --file --no-tree ../include/linux/mlx5/driver.h >

RE: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Dotan Barak
nal Message- > From: Joe Perches [mailto:j...@perches.com] > Sent: Monday, August 04, 2014 4:36 PM > To: Dotan Barak > Cc: linux-kernel@vger.kernel.org > Subject: Re: checkpatch.pl report about "Missing blank line after > declarations" in a structure definition > &

Re: checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 11:20 +, Dotan Barak wrote: > Hi Joe. > > Thanks for fixing the issue that I reported about. > > It seems that even after your fix, there is still a false warning of "Missing > blank line after declarations". > > I executed checkpatch.pl on a header file that exists

checkpatch.pl report about "Missing blank line after declarations" in a structure definition

2014-08-04 Thread Dotan Barak
Hi Joe. Thanks for fixing the issue that I reported about. It seems that even after your fix, there is still a false warning of "Missing blank line after declarations". I executed checkpatch.pl on a header file that exists in the Linux tree: # ./checkpatch.pl --file --no-tree

checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Dotan Barak
Hi Joe. Thanks for fixing the issue that I reported about. It seems that even after your fix, there is still a false warning of Missing blank line after declarations. I executed checkpatch.pl on a header file that exists in the Linux tree: # ./checkpatch.pl --file --no-tree

Re: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 11:20 +, Dotan Barak wrote: Hi Joe. Thanks for fixing the issue that I reported about. It seems that even after your fix, there is still a false warning of Missing blank line after declarations. I executed checkpatch.pl on a header file that exists in the

RE: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Dotan Barak
-Original Message- From: Joe Perches [mailto:j...@perches.com] Sent: Monday, August 04, 2014 4:36 PM To: Dotan Barak Cc: linux-kernel@vger.kernel.org Subject: Re: checkpatch.pl report about Missing blank line after declarations in a structure definition On Mon, 2014-08-04 at 11:20

Re: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 14:14 +, Dotan Barak wrote: Hi Joe. The patch that you mentioned solved most of the issues, thanks! However, there is still one more warning of this type within a struct declaration. # ./checkpatch.pl --file --no-tree ../include/linux/mlx5/driver.h WARNING:

RE: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Dotan Barak
Subject: Re: checkpatch.pl report about Missing blank line after declarations in a structure definition On Mon, 2014-08-04 at 14:14 +, Dotan Barak wrote: Hi Joe. The patch that you mentioned solved most of the issues, thanks! However, there is still one more warning of this type within

Re: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 14:50 +, Dotan Barak wrote: I think that allowing a prefix is reasonable (to allow modules to add more flexibility). I tried the suggested change and it still didn't work for me. The following change worked for me:

RE: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Dotan Barak
In our code (I take it as an example), we used MLX5_DECLARE_DOORBELL_LOCK, So I guess that the regular expression that you mentioned will fail on it (because the _ is not allowed to be repeated). So, I would change it a little bit to allow people to use underscore as a word separator. Thanks

Re: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Joe Perches
On Mon, 2014-08-04 at 15:19 +, Dotan Barak wrote: In our code (I take it as an example), we used MLX5_DECLARE_DOORBELL_LOCK, So I guess that the regular expression that you mentioned will fail on it (because the _ is not allowed to be repeated). So, I would change it a little bit to

RE: checkpatch.pl report about Missing blank line after declarations in a structure definition

2014-08-04 Thread Dotan Barak
report about Missing blank line after declarations in a structure definition On Mon, 2014-08-04 at 15:19 +, Dotan Barak wrote: In our code (I take it as an example), we used MLX5_DECLARE_DOORBELL_LOCK, So I guess that the regular expression that you mentioned will fail on it (because