Skip to contentSkip to conversation

Doubts Regaarding the checkpatch.pl

DISCUSSION Anchal Jain 4 participants 7 messages Sep 15, 2016 – Sep 17, 2016

lore
Share & tools
lore
#0 lore raw

In checkpatch.pl tool only considers those patch which fixes the warning and errors. Those patch fixes the CHECK using checkpatch.pl tool. It is considered in the patch or not?

#1 lore raw
Quoted 2 lines · Anchal Jain

In checkpatch.pl tool only considers those patch which fixes the warning and errors.

What do you mean by this?

Quoted 2 lines

Those patch fixes the CHECK using checkpatch.pl tool. It is considered in the patch or not?

I'm sorry, but I can not parse this, can you rephrase it?

thanks,

gre gk-h

#2 lore raw
Quoted 1 line

I'm sorry, but I can not parse this, can you rephrase it?

When we run checkpatch.pl on our staging directory then it shows
- Errors
- Warnings
- Checks

So I want to know if we solve the check using checkpatch.pl tool then it is consider in our patches
or Only those checks is consider which is solved using *cocci* script because this script also fixes those
checks

Thanks,

Quoted 15 lines · Greg KH
Quoted 2 lines · Anchal Jain

In checkpatch.pl tool only considers those patch which fixes the warning and errors.

What do you mean by this?

Quoted 2 lines

Those patch fixes the CHECK using checkpatch.pl tool. It is considered in the patch or not?

I'm sorry, but I can not parse this, can you rephrase it?

thanks,

gre gk-h

#3 lore raw
Quoted 8 lines · Anchal Jain
Quoted 2 lines

I'm sorry, but I can not parse this, can you rephrase it?

When we run checkpatch.pl on our staging directory then it shows
- Errors
- Warnings
- Checks

Quoted 5 lines

So I want to know if we solve the check using checkpatch.pl tool then it is consider in our patches
or Only those checks is consider which is solved using cocci script because this script also fixes those
checks

Can you give a real example for the CHECK? :)

#4 lore raw
Quoted 1 line

Can you give a real example for the CHECK? :)

like this

CHECK: Unnecessary parentheses around padapter->mlmeextpriv
CHECK: Please don't use multiple blank lines
CHECK: Unnecessary parentheses around pstapriv->sta_hash_lock
CHECK: Unnecessary parentheses around pstapriv->sta_hash_lock
CHECK: Unnecessary parentheses around pmlmeext->mlmext_info
CHECK: Concatenated strings should use spaces between elements

Thanks,

Quoted 19 lines · Daniel Baluta
Quoted 9 lines · Anchal Jain
Quoted 2 lines

I'm sorry, but I can not parse this, can you rephrase it?

When we run checkpatch.pl on our staging directory then it shows
- Errors
- Warnings
- Checks

So I want to know if we solve the check using checkpatch.pl tool then

it is

Quoted 2 lines

consider in our patches
or Only those checks is consider which is solved using cocci script

because

Quoted 2 lines

this script also fixes those
checks

Can you give a real example for the CHECK? :)

#5 lore raw
Quoted 12 lines · Anchal Jain
Quoted 1 line

Can you give a real example for the CHECK? :)

like this

CHECK: Unnecessary parentheses around padapter->mlmeextpriv
CHECK: Please don't use multiple blank lines
CHECK: Unnecessary parentheses around pstapriv->sta_hash_lock
CHECK: Unnecessary parentheses around pstapriv->sta_hash_lock
CHECK: Unnecessary parentheses around pmlmeext->mlmext_info
CHECK: Concatenated strings should use spaces between elements

Quoted 21 lines

Thanks,

Quoted 16 lines · Daniel Baluta
Quoted 9 lines · Anchal Jain
Quoted 2 lines

I'm sorry, but I can not parse this, can you rephrase it?

When we run checkpatch.pl on our staging directory then it shows
- Errors
- Warnings
- Checks

So I want to know if we solve the check using checkpatch.pl tool then

it is

Quoted 2 lines

consider in our patches
or Only those checks is consider which is solved using cocci script

because

Quoted 2 lines

this script also fixes those
checks

Here's my take, let me know if I got the question right?

Sometime the cocci script identifies and maybe also corrects (if you are using the patch option) issues that were also found by checkpatch. So, the question perhaps is which tool you would mention in your log message?

I'd say both. You would say the issue was found and fixed with coccinelle and also corrects checkpatch issue: ....

Or, maybe I don't have the question right ;)

alisons

Quoted 10 lines
Quoted 3 lines

Can you give a real example for the CHECK? :)

Signature · 5 lines
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/CAAbeOSsVJn8Ed9B%2Bacg1BRXRnmixDouk9z1ijGy5LnU2isSz1w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
#6 lore raw
Quoted 3 lines

Here's my take, let me know if I got the question right?

Sometime the cocci script identifies and maybe also corrects (if you are

using

Quoted 7 lines

the patch option) issues that were also found by checkpatch. So, the question perhaps is which tool you would mention in your log message?

I'd say both. You would say the issue was found and fixed with coccinelle and also corrects checkpatch issue: ....

Or, maybe I don't have the question right ;)

Yes, you are correct I am trying to ask that thing.

Thank you :-)

Quoted 74 lines · Alison Schofield
Quoted 19 lines · Anchal Jain
Quoted 1 line

Can you give a real example for the CHECK? :)

like this

CHECK: Unnecessary parentheses around padapter->mlmeextpriv
CHECK: Please don't use multiple blank lines
CHECK: Unnecessary parentheses around pstapriv->sta_hash_lock
CHECK: Unnecessary parentheses around pstapriv->sta_hash_lock
CHECK: Unnecessary parentheses around pmlmeext->mlmext_info
CHECK: Concatenated strings should use spaces between elements

Thanks,

On Thu, Sep 15, 2016 at 10:44 PM, Daniel Baluta <[email protected]

Quoted 1 line · wrote:

On Thu, Sep 15, 2016 at 7:53 PM, Anchal Jain <[email protected]>

Quoted 9 lines · wrote:
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines

I'm sorry, but I can not parse this, can you rephrase it?

When we run checkpatch.pl on our staging directory then it shows
- Errors
- Warnings
- Checks

So I want to know if we solve the check using checkpatch.pl tool

then

Quoted 6 lines
Quoted 6 lines

it is

Quoted 2 lines

consider in our patches
or Only those checks is consider which is solved using cocci script

because

Quoted 2 lines

this script also fixes those
checks

Here's my take, let me know if I got the question right?

Sometime the cocci script identifies and maybe also corrects (if you are using
the patch option) issues that were also found by checkpatch. So, the question perhaps is which tool you would mention in your log message?

I'd say both. You would say the issue was found and fixed with coccinelle and also corrects checkpatch issue: ....

Or, maybe I don't have the question right ;)

alisons

Quoted 6 lines
Quoted 3 lines

Can you give a real example for the CHECK? :)

--
You received this message because you are subscribed to the Google

Groups "outreachy-kernel" group.

Quoted 1 line

To unsubscribe from this group and stop receiving emails from it, send

an email to [email protected].

Quoted 2 lines

To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/

msgid/outreachy-kernel/CAAbeOSsVJn8Ed9B%2Bacg1BRXRnmixDouk9z1ijGy5LnU2 isSz1w%40mail.gmail.com.

Quoted 1 line

For more options, visit https://groups.google.com/d/optout.