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=-6.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,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 706A3C433E7 for ; Fri, 16 Oct 2020 02:49:23 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E36842074D for ; Fri, 16 Oct 2020 02:49:22 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="v33v2Wef" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E36842074D Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 77BDE94006A; Thu, 15 Oct 2020 22:49:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 70424940034; Thu, 15 Oct 2020 22:49:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5A79894006A; Thu, 15 Oct 2020 22:49:22 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0133.hostedemail.com [216.40.44.133]) by kanga.kvack.org (Postfix) with ESMTP id 2A871940034 for ; Thu, 15 Oct 2020 22:49:22 -0400 (EDT) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id BC6C98249980 for ; Fri, 16 Oct 2020 02:49:21 +0000 (UTC) X-FDA: 77376257322.28.gold54_0212ea727219 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin28.hostedemail.com (Postfix) with ESMTP id 9DC436C05 for ; Fri, 16 Oct 2020 02:49:21 +0000 (UTC) X-HE-Tag: gold54_0212ea727219 X-Filterd-Recvd-Size: 3298 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf30.hostedemail.com (Postfix) with ESMTP for ; Fri, 16 Oct 2020 02:49:21 +0000 (UTC) Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DCB48208C7; Fri, 16 Oct 2020 02:49:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602816560; bh=pMsQ5TWVu8f3N0dTVqVu0NXUQPYASWgT4Q+oTMgr+yQ=; h=Date:From:To:Subject:In-Reply-To:From; b=v33v2WefVLp+YWrRyiXx3E+eGNpFm43J8zTaejQ4Wq/d0RqFA24hbi+P9WcZEQ7YX +b9/t1NhXxglcoxBAT1dfzmBHY2JJRzHuJ2YxI3AfctBlKmHJ9ycugRlqLZC20C9mV PADHfQzQFp3SS3cjVeff5cOi5svo6SccuoPEtsx8= Date: Thu, 15 Oct 2020 19:49:19 -0700 From: Andrew Morton To: akpm@linux-foundation.org, b.zolnierkie@samsung.co, joe@perches.com, l.stelmach@samsung.com, linux-mm@kvack.org, m.szyprowski@samsung.com, mm-commits@vger.kernel.org, torvalds@linux-foundation.org Subject: [patch 132/156] checkpatch: fix false positive on empty block comment lines Message-ID: <20201016024919.EyIEDSv-j%akpm@linux-foundation.org> In-Reply-To: <20201015192732.f448da14e9854c7cb7299956@linux-foundation.org> User-Agent: s-nail v14.8.16 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: =46rom: =C5=81ukasz Stelmach Subject: checkpatch: fix false positive on empty block comment lines To avoid false positives in presence of SPDX-License-Identifier in networking files it is required to increase the leeway for empty block comment lines by one line. For example, checking drivers/net/loopback.c which starts with // SPDX-License-Identifier: GPL-2.0-or-later /* * INET An implementation of the TCP/IP protocol suite for the= LINUX rsults in an unnecessary warning WARNING: networking block comments don't use an empty /* line, use /* C= omment... +/* + * INET An implementation of the TCP/IP protocol suite = for the LINUX Link: https://lkml.kernel.org/r/20201006083509.19934-1-l.stelmach@samsung.c= om Signed-off-by: =C5=81ukasz Stelmach Acked-by: Joe Perches Cc: Bart=C5=82omiej =C5=BBolnierkiewicz Cc: Marek Szyprowski Signed-off-by: Andrew Morton --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/scripts/checkpatch.pl~checkpatch-fix-false-positive-on-empty-block-co= mment-lines +++ a/scripts/checkpatch.pl @@ -3464,7 +3464,7 @@ sub process { if ($realfile =3D~ m@^(drivers/net/|net/)@ && $prevrawline =3D~ /^\+[ \t]*\/\*[ \t]*$/ && $rawline =3D~ /^\+[ \t]*\*/ && - $realline > 2) { + $realline > 3) { # Do not warn about the initial copyright comment b= lock after SPDX-License-Identifier WARN("NETWORKING_BLOCK_COMMENT_STYLE", "networking block comments don't use an empty /* line, use /* Comm= ent...\n" . $hereprev); } _