From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F3E7C4CECE for ; Mon, 14 Oct 2019 20:55:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1954921721 for ; Mon, 14 Oct 2019 20:55:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731777AbfJNUzr (ORCPT ); Mon, 14 Oct 2019 16:55:47 -0400 Received: from smtprelay0130.hostedemail.com ([216.40.44.130]:58924 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731694AbfJNUzq (ORCPT ); Mon, 14 Oct 2019 16:55:46 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 28298182CED2A; Mon, 14 Oct 2019 20:55:45 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-HE-Tag: pen10_4f27ab242ff2d X-Filterd-Recvd-Size: 1763 Received: from XPS-9350 (cpe-23-242-95-240.socal.res.rr.com [23.242.95.240]) (Authenticated sender: joe@perches.com) by omf14.hostedemail.com (Postfix) with ESMTPA; Mon, 14 Oct 2019 20:55:43 +0000 (UTC) Message-ID: Subject: Re: Documentation/, SPDX tags, and checkpatch.pl From: Joe Perches To: John Hubbard , Andy Whitcroft , Jonathan Corbet , linux-doc@vger.kernel.org Cc: LKML Date: Mon, 14 Oct 2019 13:55:41 -0700 In-Reply-To: <124ecffe-25a0-ace6-f106-d9d173c17035@nvidia.com> References: <124ecffe-25a0-ace6-f106-d9d173c17035@nvidia.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.32.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-10-14 at 13:47 -0700, John Hubbard wrote: > Hi, > > When adding a new Documentation/ file, checkpatch.pl is warning me > that the SPDX tag is missing. Should checkpatch.pl skip those kinds > of warnings, seeing as how we probably don't intend on putting the > SPDX tags at the top of the Documentation/*.rst files? > > Or are we, after all? I'm just looking to get to a warnings-free situation > here, one way or the other. :) > > The exact warning I'm seeing is: > > WARNING: Missing or malformed SPDX-License-Identifier tag in line 1 > #25: FILE: Documentation/vm/get_user_pages.rst:1: > +.. _get_user_pages: > Looks like ~18% of the .rst files already have SPDX markers $ git ls-files -- '*.rst' | wc -l 2125 $ git grep -n "SPDX-License-Identifier:" -- '*.rst'| grep ':1:' | wc -l 378 Likely all .rst files will have these markers eventually.