All of lore.kernel.org
 help / color / mirror / Atom feed
* Problem in "Pick a warning, and try to fix it": Don't have a warning to pick
@ 2023-03-08 21:57 Kloudifold
  2023-03-08 23:59 ` Alison Schofield
  2023-03-09  6:29 ` Julia Lawall
  0 siblings, 2 replies; 3+ messages in thread
From: Kloudifold @ 2023-03-08 21:57 UTC (permalink / raw)
  To: alison.schofield; +Cc: outreachy

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:

> perl scripts/checkpatch.pl -f drivers/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?


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem in "Pick a warning, and try to fix it": Don't have a warning to pick
  2023-03-08 21:57 Problem in "Pick a warning, and try to fix it": Don't have a warning to pick Kloudifold
@ 2023-03-08 23:59 ` Alison Schofield
  2023-03-09  6:29 ` Julia Lawall
  1 sibling, 0 replies; 3+ messages in thread
From: Alison Schofield @ 2023-03-08 23:59 UTC (permalink / raw)
  To: Kloudifold; +Cc: outreachy

On Thu, Mar 09, 2023 at 05:57:55AM +0800, Kloudifold wrote:
> 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:
> 
> > perl scripts/checkpatch.pl -f drivers/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
> 
> 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?
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem in "Pick a warning, and try to fix it": Don't have a warning to pick
  2023-03-08 21:57 Problem in "Pick a warning, and try to fix it": Don't have a warning to pick Kloudifold
  2023-03-08 23:59 ` Alison Schofield
@ 2023-03-09  6:29 ` Julia Lawall
  1 sibling, 0 replies; 3+ messages in thread
From: Julia Lawall @ 2023-03-09  6:29 UTC (permalink / raw)
  To: Kloudifold; +Cc: alison.schofield, outreachy



On Thu, 9 Mar 2023, Kloudifold wrote:

> 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:
>
> > perl scripts/checkpatch.pl -f drivers/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?

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-09  6:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-08 21:57 Problem in "Pick a warning, and try to fix it": Don't have a warning to pick Kloudifold
2023-03-08 23:59 ` Alison Schofield
2023-03-09  6:29 ` Julia Lawall

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.