On Fri, 2019-03-22 at 17:12 +0100, Thomas Gleixner wrote:
> On Fri, 22 Mar 2019, Borislav Petkov wrote:
> 
> > On Fri, Mar 22, 2019 at 03:31:54PM +0100, Thomas Gleixner wrote:
> > > We have no proper decision/recommendation about documentation
> > > licensing. That's being worked on.
> > 
> > Ok, I'm ignoring this checkpatch warning from now on.
> 
> Only for Documentation/* files please.

Perhaps
---
 scripts/checkpatch.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index d0001fd1112d..00c1457fe79b 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3058,7 +3058,8 @@ sub process {
                                             "Improper SPDX comment style for 
'$realfile', please use '$comment' instead\n" . $herecurr);
                                }
 
-                               if ($comment !~ /^$/ &&
+                               if ($realfile !~ m@^Documentation/@ &&
+                                   $comment !~ /^$/ &&
                                    $rawline !~ m@^\+\Q$comment\E 
SPDX-License-Identifier: @) {
                                        WARN("SPDX_LICENSE_TAG",
                                             "Missing or malformed 
SPDX-License-Identifier tag in line $checklicenseline\n" . $herecurr);


Reply via email to