From patchwork Thu Feb 22 05:15:39 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 204565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp43425dyb; Wed, 21 Feb 2024 21:16:11 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXC5UWVV8WmzbBo3T09aYX+8IWTHR9YGjNA5YNL7+9os93l17McRnOf81xz1DYcb9wqFsvubP82yPnebHcK32gcNirbxg== X-Google-Smtp-Source: AGHT+IGS9DFy647lnUf1KIjxD3FGG4qqSLvSAWmSZSXcVcX+qZ3mY+RmY+Iua3UcyoOLw2lOpAI5 X-Received: by 2002:ac8:5d92:0:b0:42d:a884:7dfb with SMTP id d18-20020ac85d92000000b0042da8847dfbmr23973388qtx.2.1708578971764; Wed, 21 Feb 2024 21:16:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708578971; cv=pass; d=google.com; s=arc-20160816; b=IikJUmaRrtoEyxqmBILtahtU549N3gp63waITsmmtbdOodGZfZ5g5vu7jECcl2zmFh xtqp7TUsaBPMe52AU7CuiohuY5X3FIhkUkjp5Pkhmkv4kNDedvbGYd0WAXoufL1Z1Jd4 bpOF9St/0mzcntwdutrlVursFs2/eqlLM1IeqT4EhwI1w3MoKbytYs7mt47sUpgFvZqw Gtg9/Jhi7RxfO8fFXRrkan/mqJZhsYeQDMtgSF1fTpoKHCtOx5OZyOTeJwCLfOXrt2n+ BqpH21Y+WcV0YcsAG83mfvO2Favdw3kKSc771/t2NUFUSNyKL4zEdqL+VPB5Q91GPtMS 5AxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:date:dkim-signature; bh=/szi7MXaD7WqR7pua3W77cLv+YU355Nd7WimhF2bWNQ=; fh=3sV2sy8VZrbGyONbDXebEQkCnvwbMEOCye5JI1VOBdE=; b=1ItuVngOw5wGPW3UzhoFUaAyBbrdI9gam0ayaQ3N68r4yNrXBcqVxU87vUi9V5MqMu XAGOlTozhzxLix+CoYLRZ6yYE3Ixbs3rYOJkIsTGTQcaZlWpJ1s0d08Mm4MeUWIbxJIY +DdweYIIS1y/1c1vYZIHp3V54ezmz+2OSsPJqFztRFJL00Z4fE5aGP2wBTVoyvqt9f3B EKXlqRHBdEMN3qMLr6RCigJZ+t+qyMuAZ5yCr8RICAup8KsEDbuEAQjDmFUyqR+FJeGl DiM86NA+KZZD0IIfB//6TqNRWPyAUQHLPkqD1b7FMvEoZZGwos1zm1f1qP0lEz6QItQO 8BdA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=daoNE5eK; arc=pass (i=1 spf=pass spfdomain=flex--saravanak.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75926-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z22-20020a05622a029600b0042c44be9c20si7173497qtw.507.2024.02.21.21.16.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 21:16:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=daoNE5eK; arc=pass (i=1 spf=pass spfdomain=flex--saravanak.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-75926-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75926-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 8A8E81C2160A for ; Thu, 22 Feb 2024 05:16:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 388F312B81; Thu, 22 Feb 2024 05:15:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="daoNE5eK" Received: from mail-yb1-f202.google.com (mail-yb1-f202.google.com [209.85.219.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 210C06FCC for ; Thu, 22 Feb 2024 05:15:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.202 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708578952; cv=none; b=HN3H6TYDZnr+y7YnTX0SoPxzITYOgWup31OCgvT0PSog+K1QESdiuxzDH7EPkCsnUm7FwIDpRpw4sRHzWkTzknML1AqPLEtUt6Cf5zV8cEckebxjDZkbPpXujfN1yVR1mFrsXkvt+SPGezmd2Y+t/ojcnGsSfWTwsY3orxzSQZ0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708578952; c=relaxed/simple; bh=/5pahtp3IV21Zkx7LwhzOaL8qhatST6yLhJWnBUWtrI=; h=Date:Message-Id:Mime-Version:Subject:From:To:Cc:Content-Type; b=qNb/VTF+wZur5GzW4FHH+wyoAX6GZdaofPuANdDz5LsqsS71vbwRnTU7/bCW9YA6VveBxyWwhspkXBcy3CH4M1C3LKutDPLkhBgafw91xdjOyPl1ybykg9cSVg9XCWwRfIrcL/beTStjDLBFQSnzKh6ClKjeTVzbQ/ZwobjrTwo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=daoNE5eK; arc=none smtp.client-ip=209.85.219.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--saravanak.bounces.google.com Received: by mail-yb1-f202.google.com with SMTP id 3f1490d57ef6-dc6b26845cdso2143495276.3 for ; Wed, 21 Feb 2024 21:15:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708578950; x=1709183750; darn=vger.kernel.org; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=/szi7MXaD7WqR7pua3W77cLv+YU355Nd7WimhF2bWNQ=; b=daoNE5eKe1VpC/uzaTBgC5hb6/BoHP/DrwgQOcIjt+Tc3yzOa8vpPUmW3imBoF0gSQ riFs66DPIKFDDiHlyRe1p3rfzKzAonIuitwavApvhDhZD6NjGYMWD88TmDg6wmTwux+U N6B4YyWdDZUX4U2kCQQLK5j7w6I8PSAHYCtCN6f/Nm6Xr/T8QmZZSCf4gFKD3CQNLxuy kSOQuSJucJbeKYiONQSdf/ZLEbPsNEZUXIvatg4tJHGNt+HZfEOts+f4tAvq66qRIDYR vpjBg0/xBMLHXSPCvoo3NGgOcv33xsDM/O3nzi4cetk+X7hLLJfHTNOtwIs5V3EF6nx4 9ifQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708578950; x=1709183750; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/szi7MXaD7WqR7pua3W77cLv+YU355Nd7WimhF2bWNQ=; b=JOTSKGEzlyq4O+aeRg24o+woFIaAlIKF6YyyFKWTt8dk0IxnvpoebL8JckSenaUrDs UO4ePJPs14iSpFhcR4sHLHTdxPYa77N4Go0pODSX87YQEcG1TJC6KyGmDOicaW1wGgHP E7xbLTkJKlOQ4QIGAUvnHCU58Q4PuOhA5/pu68dG0GuiuJ0HY3JbAoyabwn+JLQlLoUH t2y+H+OfGHSGC963PZB3hhXhw93rBMU7+gsuEJfqB5NGyxOApfN4xyvgUg91b8swvrBN KdRIx6VJR97hmCGrtA+cH85+Z/nA8A5S65/ePZz5JWm1+iLsQzNNAyKelmSrmd8RRnTW bbNg== X-Forwarded-Encrypted: i=1; AJvYcCXuHkEOXWJ3cO+cae38U9WAbz4qFp+qVgUzXMDN0rv+m8UUyXgV3gVYM/8i573GVFxxPYVQMP5rt7nu52g9AokasvtUfDNo5CtfCN/e X-Gm-Message-State: AOJu0YxmIj1bNqVvQvRQCONCy9Okm5LcqBh5vSotNado9sdXO4BCjd2a RxD/AxEMhAknIghphNtFlq7r+qZIjG1U0yMC6GTFg5FC+k1Mhb4j/xiLs26LnSx71mGIjOE2rWr GRAaDPy1/kGBbsA== X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:451c:c6c5:1fb1:a2a1]) (user=saravanak job=sendgmr) by 2002:a05:6902:150c:b0:dc6:e1ed:bd1a with SMTP id q12-20020a056902150c00b00dc6e1edbd1amr384095ybu.2.1708578950167; Wed, 21 Feb 2024 21:15:50 -0800 (PST) Date: Wed, 21 Feb 2024 21:15:39 -0800 Message-Id: <20240222051539.3001988-3-saravanak@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Subject: [PATCH 1/2] checkpatch: Don't check for 75 chars per line for create/delete mode lines From: Saravana Kannan To: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Cc: Saravana Kannan , kernel-team@android.com, linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791574904272659756 X-GMAIL-MSGID: 1791574904272659756 Cover letters have a "create/delete mode " line for files added/deleted in the patch series. Ignore these lines when checking for the maximum 75 chars per line limit. Signed-off-by: Saravana Kannan --- scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 9c4c4a61bc83..f306634a938c 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3271,6 +3271,8 @@ sub process { # filename then : $line =~ /^\s*(?:Fixes:|$link_tags_search|$signature_tags)/i || # A Fixes:, link or signature tag line + $line =~ /^\s*(?:delete|create) mode\s+[0-8]+\s+\S+\s*$/i || + # A "create/delete mode " line found in cover letters $commit_log_possible_stack_dump)) { WARN("COMMIT_LOG_LONG_LINE", "Prefer a maximum 75 chars per line (possible unwrapped commit description?)\n" . $herecurr);