Skip to contentSkip to conversation

Regarding checkpatch camelcase issues

DISCUSSION Guru Mehar Rachaputi 3 participants 5 messages Feb 4, 2023 – Feb 5, 2023 Staging

lore
Share & tools
lore
#0 lore raw

Thanks for your support.

I wanted to confirm if each checkpatch encounter for camelcase issue should be fixed in a new patch?

For example: If the issue is with same variable, then multiple modifications can be made in one patch.

-> above example is OK

For example: If the issue is with multiple variables, then multiple modifications can be made in one patch.

-> above example is NOT OK / NG

Please confirm me if my understanding is correct?

Signature · 2 lines
Thanks & Regards,
Guru
#1 lore raw
Quoted 11 lines · Guru Mehar Rachaputi

Thanks for your support.

I wanted to confirm if each checkpatch encounter for camelcase issue should be fixed in a new patch?

For example: If the issue is with same variable, then multiple modifications can be made in one patch.

-> above example is OK

Quoted 8 lines

For example: If the issue is with multiple variables, then multiple modifications can be made in one patch.

-> above example is NOT OK / NG

Please confirm me if my understanding is correct?

I guess you have generated a patch series, then check it through checkpatch.

Indeed, if checkpatch complains at a particular patch, you need to do interactive rebase. Make sure that rebase todo list contains "edit" lines on commit you want to fix up. After that, fix these complaints.

When you're done, regenerate the patch series and make sure that there are no checkpatch complains on it.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
#2 lore raw
Quoted 24 lines · Bagas Sanjaya
Quoted 11 lines · Guru Mehar Rachaputi

Thanks for your support.

I wanted to confirm if each checkpatch encounter for camelcase issue should be fixed in a new patch?

For example: If the issue is with same variable, then multiple modifications can be made in one patch.

-> above example is OK

Quoted 8 lines

For example: If the issue is with multiple variables, then multiple modifications can be made in one patch.

-> above example is NOT OK / NG

Please confirm me if my understanding is correct?

I guess you have generated a patch series, then check it through checkpatch.

Quoted 11 lines

Indeed, if checkpatch complains at a particular patch, you need to do interactive rebase. Make sure that rebase todo list contains "edit" lines on commit you want to fix up. After that, fix these complaints.

When you're done, regenerate the patch series and make sure that there are no checkpatch complains on it.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara

Thanks for the reply
I guess I was not clear. When I run checkpatch on a driver there were so many camelcase issues in each file. So I wanted to know if I proceed to fix them, should I submit each change as a patch or each file as a patch?
Since each file has many camelcase issue and the driver has morethan one such file.

Signature · 2 lines
Thanks & Regards,
Guru
#3 lore raw
Quoted 37 lines · Guru Mehar Rachaputi
Quoted 24 lines · Bagas Sanjaya
Quoted 11 lines · Guru Mehar Rachaputi

Thanks for your support.

I wanted to confirm if each checkpatch encounter for camelcase issue should be fixed in a new patch?

For example: If the issue is with same variable, then multiple modifications can be made in one patch.

-> above example is OK

Quoted 8 lines

For example: If the issue is with multiple variables, then multiple modifications can be made in one patch.

-> above example is NOT OK / NG

Please confirm me if my understanding is correct?

I guess you have generated a patch series, then check it through checkpatch.

Quoted 11 lines

Indeed, if checkpatch complains at a particular patch, you need to do interactive rebase. Make sure that rebase todo list contains "edit" lines on commit you want to fix up. After that, fix these complaints.

When you're done, regenerate the patch series and make sure that there are no checkpatch complains on it.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 7 lines

Thanks for the reply
I guess I was not clear. When I run checkpatch on a driver there were so many camelcase issues in each file. So I wanted to know if I proceed to fix them, should I submit each change as a patch or each file as a patch?
Since each file has many camelcase issue and the driver has morethan one such file.

Hi Guru,
You can look at similar change proposals from other developers here[1]. That should help you understand how it was done previously. This resource is very useful to determine if the change you are proposing was already submit by another developer and the feedback on it. In general, it is a great resource to learn.

You should also look at the guidelines on how to design your patch, number of changes, when to use a patch set etc at this location[2]. This page has more additional links to resources that are useful to understand how to submit patches. Check these links [3] & [4].

[1] https://lore.kernel.org/?q=&a=search+all+inboxes
[2] https://kernelnewbies.org/Outreachyfirstpatch
[3] https://kernelnewbies.org/PatchPhilosophy
[4] https://elixir.bootlin.com/linux/latest/source/Documentation/process/coding-style.rst

Hope this helps.

Regards,
deepak

Quoted 5 lines
Signature · 3 lines
-- 
Thanks & Regards,
Guru
#4 lore raw
Quoted 63 lines · Deepak R Varma
Quoted 37 lines · Guru Mehar Rachaputi
Quoted 24 lines · Bagas Sanjaya
Quoted 11 lines · Guru Mehar Rachaputi

Thanks for your support.

I wanted to confirm if each checkpatch encounter for camelcase issue should be fixed in a new patch?

For example: If the issue is with same variable, then multiple modifications can be made in one patch.

-> above example is OK

Quoted 8 lines

For example: If the issue is with multiple variables, then multiple modifications can be made in one patch.

-> above example is NOT OK / NG

Please confirm me if my understanding is correct?

I guess you have generated a patch series, then check it through checkpatch.

Quoted 11 lines

Indeed, if checkpatch complains at a particular patch, you need to do interactive rebase. Make sure that rebase todo list contains "edit" lines on commit you want to fix up. After that, fix these complaints.

When you're done, regenerate the patch series and make sure that there are no checkpatch complains on it.

Thanks.

Signature · 1 line
An old man doll... just what I always wanted! - Clara
Quoted 7 lines

Thanks for the reply
I guess I was not clear. When I run checkpatch on a driver there were so many camelcase issues in each file. So I wanted to know if I proceed to fix them, should I submit each change as a patch or each file as a patch?
Since each file has many camelcase issue and the driver has morethan one such file.

Hi Guru,
You can look at similar change proposals from other developers here[1]. That should help you understand how it was done previously. This resource is very useful to determine if the change you are proposing was already submit by another developer and the feedback on it. In general, it is a great resource to learn.

You should also look at the guidelines on how to design your patch, number of changes, when to use a patch set etc at this location[2]. This page has more additional links to resources that are useful to understand how to submit patches. Check these links [3] & [4].

[1] https://lore.kernel.org/?q=&a=search+all+inboxes
[2] https://kernelnewbies.org/Outreachyfirstpatch
[3] https://kernelnewbies.org/PatchPhilosophy
[4] https://elixir.bootlin.com/linux/latest/source/Documentation/process/coding-style.rst

Quoted 12 lines

Hope this helps.

Regards,
deepak

Quoted 5 lines
Signature · 3 lines
-- 
Thanks & Regards,
Guru

Thanks for the references deepak.
This should help.

Signature · 2 lines
Thanks & Regards,
Guru