Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp306812lqp; Mon, 10 Jun 2024 05:04:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXL1TbfcsZ4QRScBp1jbQ148HcSC0jMrV2GDhC9FpBdVKk/RgTWH0FCNHEtsder74lLgvhjOVSpHsGOaT6HKJuBzS5ApZyqbPHsu5/8pQ== X-Google-Smtp-Source: AGHT+IEHPGFA42ZGsybeQuu5V7ybkANuvMw7gkd3vX/Ws6XbSIScpTFZrzk+K2RpYrIKj5gcYNxA X-Received: by 2002:a17:90b:485:b0:2c2:7c34:d5fa with SMTP id 98e67ed59e1d1-2c2bcc5bfa4mr7618277a91.32.1718021069892; Mon, 10 Jun 2024 05:04:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718021069; cv=pass; d=google.com; s=arc-20160816; b=dLc1/e7kwYhhvKHh2iOaxDKX/9v2bUxjqV5OnlGK5Ka+2/GD1S97aHhB+vr70/CvKF zbQ5MELYDpbDfYYXkxLi+I1Eq/OcoMUTYJIyZhK8t7Wta0P1xZyeW1BogZINAqMrspr0 AH4RnLP80ZBagWJ0VGGyb/f/Ee35KfC5VGvKN0Nvw0DMNC6BjKAUDQ/wAoLaJm0ohKM8 Ku9SF/qzWwKDdyXE5zmRzLzdWprGjuxXqAF1xxB+lnC9nsGxT0KEHfM9HK1D/eEiOk7t jqWN3NP0seNHFC3FnFK6gKehg8LXSZI9a0aMGfbLRl3SA/di+wSb0dUf4psLPHVBmDoD TwfQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=mNoofsJiO+PmbYY+eEjfWy65/WFXdwvEfNTjB5dDO2k=; fh=dFAAOZ3sQHXYoMTYWS7IgP63hgxeCMiacZJ4QB5zjQ8=; b=nxLw3NzuLkKuKHikoblGySawEttVhSUVUBlViVz6fH3aOQK2ihAtYaIH4Ohf7K6vKI qVzzb78Dy+IYsSfJXv/VmIg9xvskBJ8CxgmZ0UQAAebNrheO32Ty/mJwRLmyLW8sVzjm SgrHFn0AjEQWDsVPu1GxeUWchmF0xPJsWoMLLajauDGZKiw2I4MQ6j6tgkg7heTOnO9s e3kp6ychXsOZWXbhfhUUdk4mMNUMYahWkIpFScrSg9ml3kCad1lKmgXjCadUrwWuUwDe s1k4M2TgvX1bpmtT8F0CTha0IEPESiq6JwzxOfXa2oVYCfhCs1ykVjvwXvOb9yJB96U8 EHpQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=Fotbkjmh; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-208096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208096-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 98e67ed59e1d1-2c306bd08easi1840237a91.158.2024.06.10.05.04.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 05:04:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=Fotbkjmh; arc=pass (i=1 spf=pass spfdomain=sang-engineering.com dkim=pass dkdomain=sang-engineering.com); spf=pass (google.com: domain of linux-kernel+bounces-208096-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208096-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 6974CB21608 for ; Mon, 10 Jun 2024 11:46:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C1FC7D40D; Mon, 10 Jun 2024 11:46:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b="Fotbkjmh" Received: from mail.zeus03.de (www.zeus03.de [194.117.254.33]) (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 B574C4CB35 for ; Mon, 10 Jun 2024 11:46:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=194.117.254.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718019974; cv=none; b=jcMRNfQ+X2KlfHzlJ4VOfW13g13xsMo+uhF4NDR/YnvL0th8dT4SF76cM6zKFm9qJapFhO3GWLISQdrpHljietiiSZTHl+E+l0psFLNpwqBxC5yVSfs9Y0QtkLSo0KMSHTg3LCvq+HSRTvIFhdbnjHNLl2b90oq8lkB3duuo1f0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718019974; c=relaxed/simple; bh=AVa9aJVyYPVIN3+Lbd2nxMFtmQj2U5mcJ+zieE5pC5M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d6Pz0wAADx3pIliQh8gOUJ+kGmBRdKHkd0XKARzgRLTUh9OPkn0DQ1JfDQiJYBsBcjfIgSX8lu0JX7QIoAmKaDaDFEhDFDhDB5pJls/hbPxdsgXUyvd3dowJLtp4XHtcx2lGf7IPKElQOauocDoffkrYQIDmHbDRkmfyHvLFCUE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com; spf=pass smtp.mailfrom=sang-engineering.com; dkim=pass (2048-bit key) header.d=sang-engineering.com header.i=@sang-engineering.com header.b=Fotbkjmh; arc=none smtp.client-ip=194.117.254.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sang-engineering.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sang-engineering.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= sang-engineering.com; h=from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; s=k1; bh=mNoofsJiO+PmbY Y+eEjfWy65/WFXdwvEfNTjB5dDO2k=; b=FotbkjmhldpOcZK6TXXgoT7J9b6/e7 hfqlk07ntzpW+/U6JWCy60Gh4vrBTZgP+9yNFN4DOmtu1cOPh2NPbLYer4zot0AQ YXdPpE/jUhv4aULfnVGbL6/kPrMmneyoUThWO2TZKmjCH/tg4CC92dtv3Nwe5/zN jrIrvM95vxcFaiUnpEWrkx+Gr4Sx1rGx+DQDhMQczEvtVvSV4wNO9uduvD9D7UGD FCl7pqc1379ae93WGZRN1tfW7B9h9BJ/gTevjOXiB/7Z9sdSc0yJ4cJ2vh9y712b QTUU92BPY2IB0qJD9Y0l6WTPpdEaSHD1M20dKxo/vzdynvShJG8e8ZMg== Received: (qmail 62165 invoked from network); 10 Jun 2024 13:46:10 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Jun 2024 13:46:10 +0200 X-UD-Smtp-Session: l3s3148p1@ZuMLsocaWuwgAwDPXymAAHMyzy0c7Kdl From: Wolfram Sang To: linux-renesas-soc@vger.kernel.org Cc: Wolfram Sang , Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn , Andrew Morton , linux-kernel@vger.kernel.org Subject: [PATCH] checkpatch: really skip LONG_LINE_* when LONG_LINE is ignored Date: Mon, 10 Jun 2024 13:45:55 +0200 Message-ID: <20240610114554.82496-2-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit For this to happen, all types must be set to "show". So, AND is needed for the flags, not OR. Fixes: 47e0c88b37a5 ("checkpatch: categorize some long line length checks") Signed-off-by: Wolfram Sang --- scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 2b812210b412..f81c046a22a1 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3858,7 +3858,7 @@ sub process { } if ($msg_type ne "" && - (show_type("LONG_LINE") || show_type($msg_type))) { + (show_type("LONG_LINE") && show_type($msg_type))) { my $msg_level = \&WARN; $msg_level = \&CHK if ($file); &{$msg_level}($msg_type, -- 2.43.0