Re: [PATCH] Add information on checkpatch warning about `help` in modules

From: André Almeida
Date: Wed Oct 02 2024 - 20:15:14 EST


Hey Gabriela!

You forgot the prefix "checkpatch: " at your commit message.

Em 28/09/2024 20:46, Gabriela Bittencourt escreveu:
Add lines number information to warning of `module help` on Kconfig.
On the creation of a new module, if `help` section is smaller than 4
lines, checkpatch.pl gives a warning asking for a fully description. So
add the information of the minimal required lines to be considered a
fully description.


I think the way is described could be more clear... maybe you could start by stating the problem, and then describing your solution. It should be clear why this change is needed and helpful. I would write something like this:

---
When writing a short help paragraph for a new KConfig option, developers are prompted the following warning:

please write a help paragraph that fully describes the config symbol

However, developers might get confused about this message, giving that they do have written a help paragraph, but checkpatch is not happy about it, which can be perceived as a false positive. That happens because checkpatch considers a fully descriptive paragraph one if at least `$min_conf_desc_length` lines (as of now, 4 lines).

To make the warning more clear, output in the message the expected length of the paragraph, so developers know better what checkpatch wants from them.
---

Thanks!
André