Suggestions on CHECK avoiding camel case
Dear Outreachy Mentors,
I am working on the folowing check reported by checkpatch.pl:
CHECK: Avoid CamelCase: <dot11RSNAStatsCCMPFormatErrors> #37: FILE: drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:37:
+ u32 dot11RSNAStatsCCMPFormatErrors;
CHECK: Avoid CamelCase: <dot11RSNAStatsCCMPReplays> #38: FILE: drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:38:
+ u32 dot11RSNAStatsCCMPReplays;
Such issues are reported by checkpatch in other files in drivers/staging/ modules as well.
Should I change the varible names here or should I leave it as is?
Kindly guide me with this.
Thank you for your time.
Regards,
Khadija
Quoted 8 lines · Khadija Kamran
Dear Outreachy Mentors,
I am working on the folowing check reported by checkpatch.pl:
CHECK: Avoid CamelCase: <dot11RSNAStatsCCMPFormatErrors> #37: FILE:
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:37:
+ u32 dot11RSNAStatsCCMPFormatErrors;
Quoted 8 lines
CHECK: Avoid CamelCase: <dot11RSNAStatsCCMPReplays> #38: FILE:
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:38:
+ u32 dot11RSNAStatsCCMPReplays;Such issues are reported by checkpatch in other files in
drivers/staging/modules as well.Should I change the varible names here or should I leave it as is?
Hi Khadija,
The variable names appear relatively odd to me. You can propose to alter these as per the Linux Kernel coding-style. One thing I would suggest additionally would be to add a comment at the beginning of the variable declaration that would read something like:
/* .11 RSNA stats for CCMP */ u32 ccmp_format_errors; u32 ccmp_replays u32 ccmp_decrypt_errors;
Send these as 3 patches with the comment and variable change in patch 1 and the other two variables in two separate patches. Make sure you are able to build the full driver [.ko] after each patch.
I _think_ the change is good, however, it will depend upon the maintainers if they too like it.
Please allow a few hours for any other mentors to comment before you start making the changes.
Thanks,
Deepak.
Quoted 9 lines
Kindly guide me with this.
Thank you for your time.
Regards,
Khadija
Quoted 32 lines · Deepak R Varma
Quoted 8 lines · Khadija Kamran
Dear Outreachy Mentors,
I am working on the folowing check reported by checkpatch.pl:
CHECK: Avoid CamelCase: <dot11RSNAStatsCCMPFormatErrors> #37: FILE:
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:37:
+ u32 dot11RSNAStatsCCMPFormatErrors;Quoted 8 lines
CHECK: Avoid CamelCase: <dot11RSNAStatsCCMPReplays> #38: FILE:
drivers/staging/rtl8192e/rtllib_crypt_ccmp.c:38:
+ u32 dot11RSNAStatsCCMPReplays;Such issues are reported by checkpatch in other files in
drivers/staging/modules as well.Should I change the varible names here or should I leave it as is?
Hi Khadija,
The variable names appear relatively odd to me. You can propose to alter these as per the Linux Kernel coding-style. One thing I would suggest additionally would be to add a comment at the beginning of the variable declaration that would read something like:/* .11 RSNA stats for CCMP */ u32 ccmp_format_errors; u32 ccmp_replays u32 ccmp_decrypt_errors;Send these as 3 patches with the comment and variable change in patch 1 and the other two variables in two separate patches. Make sure you are able to build the full driver [.ko] after each patch.
Quoted 6 lines
I _think_ the change is good, however, it will depend upon the maintainers if they too like it.
Please allow a few hours for any other mentors to comment before you start making the changes.
Hey Deepak,
Thank you for the suggestion. Okay, I will wait for more feedback before starting any work on this. :)
Regards,
Khadija
Quoted 14 lines
Thanks,
Deepak.Quoted 9 lines
Kindly guide me with this.
Thank you for your time.
Regards,
Khadija