Re: [PATCH v4] hwmon: (asus-ec-sensors) merge setup functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2/16/22 10:23, Eugene Shalygin wrote:
On Wed, 16 Feb 2022 at 19:08, Guenter Roeck <linux@xxxxxxxxxxxx> wrote:
$ scripts/checkpatch.pl --strict asus-ec

So, contributors have to use the --strict option?

WARNING: braces {} are not necessary for single statement blocks

The file is full of such braces, because I like them and it is only a
warning. How should I proceed with them?


Warnings are also seen without --strict; that only adds the CHECK messages.
You should follow Linux kernel coding style when you write kernel code,
not your personal preferences. Also please consider reading
Documentation/hwmon/submitting-patches.rst, which specifically says

* Please run your patch through 'checkpatch --strict'. There should be no
  errors, no warnings, and few if any check messages. If there are any
  messages, please be prepared to explain.

* If your patch generates checkpatch errors, warnings, or check messages,
  please refrain from explanations such as "I prefer that coding style".
  Keep in mind that each unnecessary message helps hiding a real problem,
  and a consistent coding style makes it easier for others to understand
  and review the code.

Thanks,
Guenter



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux