Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp507849lqp; Mon, 10 Jun 2024 10:26:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWka2LE0xFBmgcIRG7Kk99/Uaw6XPn09ed2oesOdknehFbxvKoUr7vE/aR76Ou0Vz4by2Wqt45/yty+Vu8edbHhs1dkw6n8mMT/0T5zrQ== X-Google-Smtp-Source: AGHT+IF2H8hjcj46NHA+918Mr3Jz8LXbrAeu2y+z0lKH2U5krFjld6z82UFFxkM8oKx9fEZz1u3p X-Received: by 2002:a05:6358:4407:b0:199:2bcf:70c4 with SMTP id e5c5f4694b2df-19f1fe66aacmr872651255d.13.1718040364264; Mon, 10 Jun 2024 10:26:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718040364; cv=pass; d=google.com; s=arc-20160816; b=t0mb2SD83aYwvbvnil+PEAs859Lfm2MvpKRG+4U/lh+i7kD6FVESUEhx2zu6EwOwjI GhJ9a23LeU90GFJGzFm8NxOo6g07+SsXlDY5g24JW71ri66o+MliiafWfWuI5rg6Q/UM RRmDXVxR/DLl1lvmQm6nhYiXJgk+f8WpgKY0/0Fom9k5weNrNYvWKF9F12nG2eQpKiOB ExYCK4SbxNXhQ2wa08KIw4WNLpOCcFpaXFNtMdrmZKJYTg02tuNzSQWUN0XSNnMVn5AK KN79dnNwGvdFCDp4zVopxzicDX4S0OJ/MrCR4wlnfA0CptpenRr/RUtgqy0Y8r7KSIhF S+wg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id; bh=ebn9LeUQfMbd2rDs4elM7IEv0DRcxA5+0lPhaj4Sc3o=; fh=yEEsxsMR6+W+z3CFmEckz+mEWnmkUxHOapDxzqfVqps=; b=pHcucbGgGhXgUAS6Qq7YPNk8nj8a82Iq4O745DIUfIPgH1BKpDFv36vaAvuNsH4TJ1 fZgUgKBFTsMGKibJmT3ysaawqngW8jTlufJRFynRc6SeRjbhRcx+8PgZWLvwUdZCii87 K5KSnCoRImhKjXaibw3hwZOoq7bnVqSOjPVmv4X12YEVj6qp3ZMZPYl6by3OjsGNlhpH z+UomT7QRT40wVPn+TM8pUw+AGgCTZoYrqQ7rqL1EDCeqg0pA+LemY6Xd4mctJPHLGEX 7eFqK2GXrj1TW+QJ492tPunK4A0rGF6JtEPyo7CLBQ5aofJCmCtweYThLeKMTMxKkBh9 2Ekw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-208647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208647-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6e5cab36e81si4515252a12.769.2024.06.10.10.26.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 10:26:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=perches.com); spf=pass (google.com: domain of linux-kernel+bounces-208647-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208647-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id CDFEA284924 for ; Mon, 10 Jun 2024 17:26:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE7E914AD3F; Mon, 10 Jun 2024 17:25:36 +0000 (UTC) Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9FA58146A85; Mon, 10 Jun 2024 17:25:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=216.40.44.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040336; cv=none; b=bCPZf0B3UGos/lW7wpfQToJ189OCMOkkUoiVcsOwJiugbgjL6CF/2m1LnPuVW34ZH5j930Smkzlh0L3X/2hU/m9NBoogPx9eZAQX3jhUYHnJqWRT9P0BtTJHGkbEoHpbvB32KDiHZrUTWSQiP0bX9Y1iuon0/x1iuFPbBIW3vYM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718040336; c=relaxed/simple; bh=/XC+mW55r7g3Z7DohPDOOzrNgrg2loXRTnDdHi23zho=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=NcMBpMxt/vfmUG8OVa2LmcjePNph6ErwCCSJAohgDSGYWgmmG3cyxKF1onnuY/YsNWBBFw4eJV4+rXDEPi+K31LqL5afq6qWvyFJ+NVJZSjC5diY0Cw2RPwaWOJe+nlufT2wqdQibZ8thDooWGa0xgo/hMGajKZA7Iux5olyZRg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com; spf=pass smtp.mailfrom=perches.com; arc=none smtp.client-ip=216.40.44.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=perches.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=perches.com Received: from omf02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 16FB080F13; Mon, 10 Jun 2024 17:25:33 +0000 (UTC) Received: from [HIDDEN] (Authenticated sender: joe@perches.com) by omf02.hostedemail.com (Postfix) with ESMTPA id BA94080012; Mon, 10 Jun 2024 17:25:30 +0000 (UTC) Message-ID: Subject: Re: [PATCH v2] checkpatch: really skip LONG_LINE_* when LONG_LINE is ignored From: Joe Perches To: Wolfram Sang , linux-renesas-soc@vger.kernel.org Cc: Andy Whitcroft , Dwaipayan Ray , Lukas Bulwahn , Andrew Morton , linux-kernel@vger.kernel.org Date: Mon, 10 Jun 2024 10:25:29 -0700 In-Reply-To: <20240610150420.2279-2-wsa+renesas@sang-engineering.com> References: <20240610150420.2279-2-wsa+renesas@sang-engineering.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.48.4 (3.48.4-1.fc38) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Stat-Signature: drztxps11me4qpxzsrmb7s95j9w4aotf X-Rspamd-Server: rspamout02 X-Rspamd-Queue-Id: BA94080012 X-Session-Marker: 6A6F6540706572636865732E636F6D X-Session-ID: U2FsdGVkX1/3VhGBhzMP6rw5Kfw1qlZD69AsltsBAxU= X-HE-Tag: 1718040330-163830 X-HE-Meta: U2FsdGVkX1/LMPDsLe0iwAc+RCZSEPnXlqEQhJQ52JeNPyL64hZ+hpR2jtQmMDSvHdRZN8PQ72PZ30tUWULgUnkqjVlut1x4yfQdcjp6yvyW6HGhCQipdSik4KFrxS1LZ22Onk3eNBa26LkcJ0vNrqH5ur2S4B13fEbTl+8Im46IBFXwcUWaeOnGMx0weecUPcD//Btzn+pDITBNowUUxXfefl14mbvb0YFbkDZBq2BMYCmasvI6Hgv0rSWGeQeYR/Uxhj2+6d9/cgYBDK56rVn+m/1eyp8Zt35Ip80ePrDrZ/ZUsLsiNntpcYkyE0TVhaQppzTeSxK4rSmMJ7tL7FBuFxzxd11Edy/bvcn76TAMixwkthBZRippoK3rvsWbP4Oj9XhhoNXHZuwgSbShkUAFKT2yDgXRLqgmvJmLKa+YJOzf/olWV+yvNM7zFO/u On Mon, 2024-06-10 at 17:02 +0200, Wolfram Sang wrote: > For a printout to happen, all types must be set to "show". So, AND is nee= ded > for the flags, not OR, if we want to ignore something. Right. One day I'll learn... As the comment above the block shows: 47e0c88b37a5c3 (Joe Perches 2015-06-25 15:02:57 -0700 3821) # if LON= G_LINE is ignored, the other 2 types are also ignored Acked-by: Joe Perches >=20 > Fixes: 47e0c88b37a5 ("checkpatch: categorize some long line length checks= ") > Signed-off-by: Wolfram Sang > --- >=20 > Change since v1: > * removed now unneeded pair of braces (Thanks, Geert!) > * reworded commit message >=20 > scripts/checkpatch.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl > index 2b812210b412..375749e0a174 100755 > --- a/scripts/checkpatch.pl > +++ b/scripts/checkpatch.pl > @@ -3858,7 +3858,7 @@ sub process { > } > =20 > if ($msg_type ne "" && > - (show_type("LONG_LINE") || show_type($msg_type))) { > + show_type("LONG_LINE") && show_type($msg_type)) { > my $msg_level =3D \&WARN; > $msg_level =3D \&CHK if ($file); > &{$msg_level}($msg_type,