Received: by 2002:ab2:784b:0:b0:1fd:adc2:8405 with SMTP id m11csp426285lqp; Mon, 10 Jun 2024 08:13:33 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWy+WojYuYhqRn6mEN2/71H7wsR9amHymXjCOfXo8D2j/bRYnja5B7UqX7M+RSUE8KHBr0qZuLvQwOyadG+euAbWuO4YGhOyJ/ey4GObw== X-Google-Smtp-Source: AGHT+IH+0fNXeRTTvzb+Kl5OdPqfvTl/Xt2DFV0XntklRw8nzxcgzRqOmJCU0nzFUxlNgd2Mq3rl X-Received: by 2002:a50:d50e:0:b0:579:ca97:da1b with SMTP id 4fb4d7f45d1cf-57c5084e0damr5405963a12.6.1718032412800; Mon, 10 Jun 2024 08:13:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718032412; cv=pass; d=google.com; s=arc-20160816; b=bgyNw5TNdPRUUydZvqKKMgQzc310dTN0d/ReHl0d0Ril8nGnsn+ELoz+59tqWbSFzb cxsQ5UTtPp/5MYeIX+sopX2B8Ck8D0CHLEwgOPtiLhmbwBAbBiVr50YSLB2YQP0+/zIR CIGpM1iIO/ROmf9nRooxPdMnjWW264HEbBu3+YCh/gYLucoAGOlLh5W8bTR/GsQKDHEV sopA4xicbZ/rv21E49q/HkwlVJZH89vDtlzEduP/GIz3bJfFYT6qvP4zVInk/tVwCKP4 s2ETSj2ltYos8I7F9zYfZVKStk+y0SS7YcuuPqnspsti6ZYIbouFMavgDlce/3pLHMk5 K8PA== 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=cIJ/nk3afrFRkimdtl74K0AxDoomBJmwwsuEfKyi1+0=; fh=dFAAOZ3sQHXYoMTYWS7IgP63hgxeCMiacZJ4QB5zjQ8=; b=SbIisudM4kU6f01VEj2vDpn2zkwCnzUf78ENjsvEGuu/PT1r2dQWtqeYJzoK+URTvh cbqKj+0ofVHiU5djMK9MbjHpwuXtZaqvp3ePaqpou6qhka4X3D3ZO1czuCTz8AoPwknz dIEykxwFdF1UlX8vQwemoPbcohXtDWVdpcVZm/8w4HQzGyzpFPugr4bCCEVM6LV1Ke0c 6cgA0jjg0vHlkoD/zvZ2rtkfNtU1dtwhsFPli/JUN1TYIo0F5zeMH4Ul7lVHuDe4/xyt yV47WcdT857oe2O8ny66Op5sHGPe7BkpPwzlqon0qB9PqTbNY/dOL90RlSa6R5YHKPCN Szvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=SJ7mwujy; 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-208419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208419-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57c82b0b28esi984090a12.170.2024.06.10.08.13.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Jun 2024 08:13:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-208419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@sang-engineering.com header.s=k1 header.b=SJ7mwujy; 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-208419-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-208419-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2C4E01F24A6B for ; Mon, 10 Jun 2024 15:04:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08FCE136671; Mon, 10 Jun 2024 15:04:28 +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="SJ7mwujy" 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 7FC0B823DC for ; Mon, 10 Jun 2024 15:04:25 +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=1718031867; cv=none; b=LaoHQYiPwiKr3L4TVUhjStdyRNtFvFlrKictVxN/Dw3B7lU+oRHf8yrDeE+HU49SomoghQg/uiJXAH5C5U5elpf96SYYv4HiLM8lMNpFK4pul+O13koF35iVJ5yaDUWDBwp6FYupowfhf63XqWBDuKOit5gGJe8IDNM9NaVQczE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718031867; c=relaxed/simple; bh=0CZz6fw+7LQBCGyhxyakmhOUsemkkP5bzcqJ55ksXDY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bfDZWHRnK19RIUW1pKlSWo3gpHeH9ZCG2CIXyTHzzu9H2VOZ1/XcA5/rLlYBfpB/127IUJPbK1a8kG6EM3x/Or7cU3jnSPxVu6ZPdgaaSolPAzHFxk0pfcTL+KjG+CBEIcqLyXBQPUKNg1Uz6VoARHA7Q9OMT4+LN/dbb9zvxGI= 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=SJ7mwujy; 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=cIJ/nk3afrFRki mdtl74K0AxDoomBJmwwsuEfKyi1+0=; b=SJ7mwujyN/j1MPysjU47gBFR+qy/zS lzBBBlFBqu4W9Y2U3J1cmqOGbGN7KBrHKKViURipze8wNIsY7A53BxuAuz2fwXD8 P0iQGTn8Sctz4JJdWalofgDMjMGxtHzzU2oTiNVd+4tTOolPxthx01CHssJoG+gF CCsCAoZ4aV1nwpwP0JLaFNfbB8KAZ0+Qc18/vTs0ehXXatSpFg8cvb6LRAuQOvgn einKq4Kam2Io38TH21V6wYKaQ+OibOOQN4JM/5SWms5W0LQHdfZ5IkqpL1zxq0gp cTMgJ1nd8mjsAwzn+hMpK6PUQfhi3RS84e7vfhD9CLYKxsuASEuNG+2A== Received: (qmail 118145 invoked from network); 10 Jun 2024 17:04:23 +0200 Received: by mail.zeus03.de with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted, authenticated); 10 Jun 2024 17:04:23 +0200 X-UD-Smtp-Session: l3s3148p1@6r7rdooa4qtehhrL 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 v2] checkpatch: really skip LONG_LINE_* when LONG_LINE is ignored Date: Mon, 10 Jun 2024 17:02:09 +0200 Message-ID: <20240610150420.2279-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 a printout to happen, all types must be set to "show". So, AND is needed for the flags, not OR, if we want to ignore something. Fixes: 47e0c88b37a5 ("checkpatch: categorize some long line length checks") Signed-off-by: Wolfram Sang --- Change since v1: * removed now unneeded pair of braces (Thanks, Geert!) * reworded commit message scripts/checkpatch.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { } 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