Problem in "Pick a warning, and try to fix it": Don't have a warning to pick
Hello, I am Kloudifold, an Outreachy applicant.
I'm reading https://kernelnewbies.org/Outreachyfirstpatch and trying to make my first patch. It says, "Pick a warning, and try to fix it. For your first patch, only pick one warning.", but when I used the command:
Quoted 1 line
perl
scripts/checkpatch.pl-fdrivers/staging/*/*| grep "[1-9] warnings" -B 10 -A 2
I can only find warnings for drivers/staging/axis-fifo/axis-fifo.c, a file that is already being submitted to the mailing list, which means I don't have a warning to pick. How should I finish my first patch in this case? Should I look for something more difficult than changing the coding style?
Quoted 5 lines · Kloudifold
Hello, I am Kloudifold, an Outreachy applicant.
I'm reading https://kernelnewbies.org/Outreachyfirstpatch and trying to make my first patch. It says, "Pick a warning, and try to fix it. For your first patch, only pick one warning.", but when I used the command:
Quoted 1 line
perl
scripts/checkpatch.pl-fdrivers/staging/*/*| grep "[1-9] warnings" -B 10 -A 2
Hi Kloudifold,
Your script is quitting after operating on the first dir.
There are more WARNINGs and CHECKs
Look up the --strict option to checkpatch to get those CHECKs.
Reminder: don't include drivers/staging/media in your searches.
Alison
Quoted 4 lines
I can only find warnings for
drivers/staging/axis-fifo/axis-fifo.c, a file that is already being submitted to the mailing list, which means I don't have a warning to pick. How should I finish my first patch in this case? Should I look for something more difficult than changing the coding style?
Quoted 8 lines · Kloudifold
Hello, I am Kloudifold, an Outreachy applicant.
I'm reading https://kernelnewbies.org/Outreachyfirstpatch and trying to make my first patch. It says, "Pick a warning, and try to fix it. For your first patch, only pick one warning.", but when I used the command:
Quoted 1 line
perl
scripts/checkpatch.pl-fdrivers/staging/*/*| grep "[1-9] warnings" -B 10 -A 2I can only find warnings for
drivers/staging/axis-fifo/axis-fifo.c, a file that is already being submitted to the mailing list, which means I don't have a warning to pick. How should I finish my first patch in this case? Should I look for something more difficult than changing the coding style?
I'm surprised that there would only be one warning in all of staging. But who knows.
Your grep may be missing cases with eg 10 warnings?
Maybe see if some of the CHECK or ERROR cases are easy to do?
If you find nothing at all, a few days ago I posted a list of cases where the argument indentation might be undesirable. You cold look hrough them for something that could be improved.
julia