* Checkpatch False positive
@ 2018-08-20 20:21 Jeff Kirsher
2018-08-20 20:22 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: Jeff Kirsher @ 2018-08-20 20:21 UTC (permalink / raw)
To: Andy Whitcroft, Joe Perches; +Cc: netdev, Linux Docs
[-- Attachment #1: Type: text/plain, Size: 845 bytes --]
Checkpatch.pl should probably exclude *.rst files from the SPDX License
Identifier check, since they are documentational files, like *.txt.
Here is the warning message I got on a recent documentation patch I
created.
WARNING: Missing or malformed SPDX-License-Identifier tag in line 1
#28: FILE: Documentation/networking/fm10k.rst:1:
+Linux* Base Driver for Intel(R) Ethernet Multi-host Controller
total: 0 errors, 1 warnings, 0 checks, 162 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.
.apply/v4-Documentation-fm10k-Add-kernel-documentation.patch has style
problems, please review.
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Checkpatch False positive
2018-08-20 20:21 Checkpatch False positive Jeff Kirsher
@ 2018-08-20 20:22 ` Matthew Wilcox
2018-08-20 20:32 ` Jeff Kirsher
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2018-08-20 20:22 UTC (permalink / raw)
To: Jeff Kirsher; +Cc: Andy Whitcroft, Joe Perches, netdev, Linux Docs
On Mon, Aug 20, 2018 at 01:21:30PM -0700, Jeff Kirsher wrote:
> Checkpatch.pl should probably exclude *.rst files from the SPDX License
> Identifier check, since they are documentational files, like *.txt.
They're still copyrighted work, so they should still have SPDX tags
to identify their license.
checkpatch has:
} elsif ($realfile =~ /\.rst$/) {
$comment = '..';
so we're explicitly including rst files in the checking for now.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Checkpatch False positive
2018-08-20 20:22 ` Matthew Wilcox
@ 2018-08-20 20:32 ` Jeff Kirsher
0 siblings, 0 replies; 3+ messages in thread
From: Jeff Kirsher @ 2018-08-20 20:32 UTC (permalink / raw)
To: Matthew Wilcox; +Cc: Andy Whitcroft, Joe Perches, netdev, Linux Docs
[-- Attachment #1: Type: text/plain, Size: 735 bytes --]
On Mon, 2018-08-20 at 13:22 -0700, Matthew Wilcox wrote:
> On Mon, Aug 20, 2018 at 01:21:30PM -0700, Jeff Kirsher wrote:
> > Checkpatch.pl should probably exclude *.rst files from the SPDX
> > License
> > Identifier check, since they are documentational files, like
> > *.txt.
>
> They're still copyrighted work, so they should still have SPDX tags
> to identify their license.
>
> checkpatch has:
>
> } elsif ($realfile =~ /\.rst$/) {
> $comment = '..';
>
> so we're explicitly including rst files in the checking for now.
Ah, sorry. I did not catch that they started to include SPDX-License-
Identifiers for RST files, thanks Matthew.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-08-20 23:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-20 20:21 Checkpatch False positive Jeff Kirsher
2018-08-20 20:22 ` Matthew Wilcox
2018-08-20 20:32 ` Jeff Kirsher
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).