Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-22 Thread Joe Perches
On Thu, 2020-10-22 at 19:51 +0530, Aditya wrote: > > > Alright Sir. Joe is fine, sir isn't necessary. > Hi Sir > I have implemented my solution. Should I send the patch in reply to > this mail or as a different mail? Also should I label it as v2? I have > also addressed the warnings out of list

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-22 Thread Aditya
On 22/10/20 12:42 am, Lukas Bulwahn wrote: > On Wed, Oct 21, 2020 at 8:25 PM Aditya wrote: >> >> On 21/10/20 11:35 pm, Joe Perches wrote: >>> On Wed, 2020-10-21 at 23:25 +0530, Aditya wrote: Thanks for your feedback. I ran a manual check using this approach over v5.6..v5.8. The

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Joe Perches
On Wed, 2020-10-21 at 12:26 -0700, Joe Perches wrote: > Perhaps a regex for permissions is good enough > $line !~ /\b[cbdl-][rwxs-]{9,9}\b/ Maybe not completely correct... >From info ls: The file type is one of the following characters: ‘-’ regular file ‘b’

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Joe Perches
On Thu, 2020-10-22 at 00:40 +0530, Aditya wrote: > On 21/10/20 8:48 pm, Joe Perches wrote: > > On Wed, 2020-10-21 at 20:31 +0530, Aditya Srivastava wrote: > > > Presence of hexadecimal address or symbol results in false warning > > > message by checkpatch.pl. > > > > > > For example, running

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Lukas Bulwahn
On Wed, Oct 21, 2020 at 8:25 PM Aditya wrote: > > On 21/10/20 11:35 pm, Joe Perches wrote: > > On Wed, 2020-10-21 at 23:25 +0530, Aditya wrote: > >> Thanks for your feedback. I ran a manual check using this approach > >> over v5.6..v5.8. > >> The negatives occurring with this approach are for the

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Aditya
On 21/10/20 8:48 pm, Joe Perches wrote: > On Wed, 2020-10-21 at 20:31 +0530, Aditya Srivastava wrote: >> Presence of hexadecimal address or symbol results in false warning >> message by checkpatch.pl. >> >> For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix >> memory leak in

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Aditya
On 21/10/20 11:35 pm, Joe Perches wrote: > On Wed, 2020-10-21 at 23:25 +0530, Aditya wrote: >> Thanks for your feedback. I ran a manual check using this approach >> over v5.6..v5.8. >> The negatives occurring with this approach are for the word 'be' >> (Frequency 5) and 'add'(Frequency 1). For eg.

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Joe Perches
On Wed, 2020-10-21 at 23:25 +0530, Aditya wrote: > Thanks for your feedback. I ran a manual check using this approach > over v5.6..v5.8. > The negatives occurring with this approach are for the word 'be' > (Frequency 5) and 'add'(Frequency 1). For eg. > > WARNING:REPEATED_WORD: Possible repeated

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Aditya
On 21/10/20 10:20 pm, Joe Perches wrote: > On Wed, 2020-10-21 at 08:28 -0700, Joe Perches wrote: >> On Wed, 2020-10-21 at 08:18 -0700, Joe Perches wrote: >>> I might add that check to the line below where >>> the repeated words are checked against long >> [] >>> diff --git a/scripts/checkpatch.pl

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Joe Perches
On Wed, 2020-10-21 at 22:29 +0530, Dwaipayan Ray wrote: > Can it be considered that the Hex numbers occur > mostly in pairs or groups of 8, like "FF" or ""? > > I think it might reduce the negative side further. Maybe. This already looks for pairs. Combined with your previous patch,

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Dwaipayan Ray
On Wed, Oct 21, 2020 at 10:21 PM Joe Perches wrote: > > On Wed, 2020-10-21 at 08:28 -0700, Joe Perches wrote: > > On Wed, 2020-10-21 at 08:18 -0700, Joe Perches wrote: > > > I might add that check to the line below where > > > the repeated words are checked against long > > [] > > > diff --git

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Joe Perches
On Wed, 2020-10-21 at 08:28 -0700, Joe Perches wrote: > On Wed, 2020-10-21 at 08:18 -0700, Joe Perches wrote: > > I might add that check to the line below where > > the repeated words are checked against long > [] > > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > [] > > @@ -3062,6

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Joe Perches
On Wed, 2020-10-21 at 08:18 -0700, Joe Perches wrote: > I might add that check to the line below where > the repeated words are checked against long [] > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl [] > @@ -3062,6 +3062,7 @@ sub process { > > next if

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Joe Perches
On Wed, 2020-10-21 at 20:31 +0530, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. > > For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix > memory leak in mptcp_subflow_create_socket()") results in warning:

Re: [PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Lukas Bulwahn
On Wed, 21 Oct 2020, Aditya Srivastava wrote: > Presence of hexadecimal address or symbol results in false warning > message by checkpatch.pl. > > For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix > memory leak in mptcp_subflow_create_socket()") results in warning: > >

[PATCH] checkpatch: fix false positive for REPEATED_WORD warning

2020-10-21 Thread Aditya Srivastava
Presence of hexadecimal address or symbol results in false warning message by checkpatch.pl. For example, running checkpatch on commit b8ad540dd4e4 ("mptcp: fix memory leak in mptcp_subflow_create_socket()") results in warning: WARNING:REPEATED_WORD: Possible repeated word: 'ff' 00 00 00 00