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

2014-08-04 Thread Dotan Barak
(I guess I need to refresh my regular expression skills ...) Thanks, this will be just great! Dotan > -Original Message- > From: Joe Perches [mailto:j...@perches.com] > Sent: Monday, August 04, 2014 6:27 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

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 Dotan Barak
and allow: (?:$Storage\s+)?[A-Z0-9_]*(?:DECLARE|DEFINE)_[ A-Z0-9_]*\s*\(| Thanks a lot for the quick (and great) response! Dotan > -Original Message- > From: Joe Perches [mailto:j...@perches.com] > Sent: Monday, August 04, 2014 5:27 PM > To: Dotan Barak > Cc: linux-kernel@

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 > &

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

2014-08-04 Thread Dotan Barak
arm_sn; struct mlx5_rsc_debug *dbg; int pid; }; As you can see, this is a structure definition and IMHO the warning above is false. Thanks! Dotan Barak Sr. Staff Engineer, Windows verification Mellanox Technologies Beit Mellanox Yokneam, 20692 Office: +972-74-7

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

2014-08-04 Thread Dotan Barak
; struct mlx5_rsc_debug *dbg; int pid; }; snip end As you can see, this is a structure definition and IMHO the warning above is false. Thanks! Dotan Barak Sr. Staff Engineer, Windows verification Mellanox Technologies Beit Mellanox Yokneam, 20692 Office: +972-74

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 Dotan Barak
and allow: (?:$Storage\s+)?[A-Z0-9_]*(?:DECLARE|DEFINE)_[ A-Z0-9_]*\s*\(| Thanks a lot for the quick (and great) response! Dotan -Original Message- From: Joe Perches [mailto:j...@perches.com] Sent: Monday, August 04, 2014 5:27 PM To: Dotan Barak Cc: linux-kernel@vger.kernel.org

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 Dotan Barak
(I guess I need to refresh my regular expression skills ...) Thanks, this will be just great! Dotan -Original Message- From: Joe Perches [mailto:j...@perches.com] Sent: Monday, August 04, 2014 6:27 PM To: Dotan Barak Cc: linux-kernel@vger.kernel.org Subject: Re: checkpatch.pl

Re: The code segment of the user level in PPC64 are in VMAs with write permissions

2007-12-19 Thread Dotan Barak
Eric Dumazet wrote: This is because on PPC architecture, address of a function points to a small data area (a function descriptor) where the caller can find informations about : - Address (in the text segment, so readonly) of the target function - Address of the TOC for this function.

Re: The code segment of the user level in PPC64 are in VMAs with write permissions

2007-12-19 Thread Dotan Barak
Eric Dumazet wrote: This is because on PPC architecture, address of a function points to a small data area (a function descriptor) where the caller can find informations about : - Address (in the text segment, so readonly) of the target function - Address of the TOC for this function.

The code segment of the user level in PPC64 are in VMAs with write permissions

2007-12-18 Thread Dotan Barak
Hi all. I noticed that the code segment of the user level in PPC64 machines is in a VMA with a write permission enabled. I'm using the following machine attributes: * Host Name : mtlsqt185 Host Architecture : ppc64 Linux

The code segment of the user level in PPC64 are in VMAs with write permissions

2007-12-18 Thread Dotan Barak
Hi all. I noticed that the code segment of the user level in PPC64 machines is in a VMA with a write permission enabled. I'm using the following machine attributes: * Host Name : mtlsqt185 Host Architecture : ppc64 Linux