linux-kernel-mentees.lists.linuxfoundation.org archive mirror
 help / color / mirror / Atom feed
* [Linux-kernel-mentees] Clarification on the behaviour of checkpatch.pl
@ 2020-04-20  0:20 Saheed Bolarinwa
  2020-04-20  6:56 ` Mauro Carvalho Chehab
  0 siblings, 1 reply; 3+ messages in thread
From: Saheed Bolarinwa @ 2020-04-20  0:20 UTC (permalink / raw)
  To: skhan, mchehab; +Cc: linux-kernel-mentees, linux-doc


[-- Attachment #1.1: Type: text/plain, Size: 1551 bytes --]

Hello,

My experience is that checkpatch.pl will not flag some warnings when I use

the '-f' flag. This especially true for .rst files. My understanding is 
that this flag

is needed to use it with a raw source file instead of a patch.

Please, I will like to confirm if this is a normal behaviour or is it my 
system setup.

Below is an example from the current stable release linux-5.6.y

    [saheed@net linux-stable]$ perl ./scripts/checkpatch.pl -f
    ./Documentation/admin-guide/hw-vuln/tsx_async_abort.rst
    total: 0 errors, 0 warnings, 279 lines checked

    ./Documentation/admin-guide/hw-vuln/tsx_async_abort.rst has no
    obvious style problems and is ready for submission.


    [saheed@net linux-stable]$ perl ./scripts/checkpatch.pl
    ./Documentation/admin-guide/hw-vuln/tsx_async_abort.rst
    WARNING: Possible unwrapped commit description (prefer a maximum 75
    chars per line)
    #6:
    TAA is a hardware vulnerability that allows unprivileged speculative
    access to

    ERROR: Does not appear to be a unified-diff format patch

    total: 1 errors, 1 warnings, 0 lines checked

    NOTE: For some of the reported defects, checkpatch may be able to
           mechanically convert to the typical style using --fix or
    --fix-inplace.

    ./Documentation/admin-guide/hw-vuln/tsx_async_abort.rst has style
    problems, please review.

    NOTE: If any of the errors are false positives, please report
           them to the maintainer, see CHECKPATCH in MAINTAINERS.


    Thank you.

    Bolarinwa Saheed


[-- Attachment #1.2: Type: text/html, Size: 2096 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees

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

end of thread, other threads:[~2020-04-21  9:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-20  0:20 [Linux-kernel-mentees] Clarification on the behaviour of checkpatch.pl Saheed Bolarinwa
2020-04-20  6:56 ` Mauro Carvalho Chehab
2020-04-21  8:44   ` Saheed Bolarinwa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).