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); From patchwork Thu Feb 22 05:15:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravana Kannan X-Patchwork-Id: 204566 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:aa16:b0:108:e6aa:91d0 with SMTP id by22csp43515dyb; Wed, 21 Feb 2024 21:16:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVm7slthebsaeN55WIuMHJrdNkcDo0f9Y4YqhLU6s3/wJfg4UUPO1m8KhKmCrTpmIp9v1HmBWiEIRkD0wPP/7itn8Tt/w== X-Google-Smtp-Source: AGHT+IH+pQMwanjRJdc2Viq0HCsBRTMxDBTVWOqFmsNtkGWny/tZeec3K6rlDMMCdlpTATWLYDhQ X-Received: by 2002:a05:622a:3cb:b0:42c:53ec:a8f6 with SMTP id k11-20020a05622a03cb00b0042c53eca8f6mr2441316qtx.28.1708578992815; Wed, 21 Feb 2024 21:16:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708578992; cv=pass; d=google.com; s=arc-20160816; b=zGCRBp0fY3xT1wKVhlJAAXxgEza10hLYqe9iEGqhC/iIzFj/IK5dj+HQ8ChVse5JQW dzDu5aaQ9iKrfM7v8EiZopg8+kn7WgrwsFUs4DlbJE0GJ985yzvTxEWRqjG9NHbepl2D A99mf3tBtbUHwuG2r+Q/0hOkxAT+VPqKigyWG64Nky6EhVDuBYQKOZ7847S/UlmaiczJ UgHnQ9+CH+ejcTvc51pX36Qx9NFyfkVnxMemF6B1gym57vQ7qlDPZszhd0PO5FOTuazg vmIactn23G3mb5xq6eDdRXs+sV+Tp6UhGqvoICzI8B8DlKWJJspyUSwgGcliTByxNAXK 6wUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:references:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:in-reply-to:date :dkim-signature; bh=b1TAt5v1M0YhGrOgA4n20TxtMypW+3VYDUodyHqRg4I=; fh=1Hs3C6tdBPqX/GeXO/2uYRagK6UkYuM3sGvBao7Mi5U=; b=YZEqNFA5hIupm6+dkSfwqGpzD/NiLDlTybTzDWp9t+1/TAmchcyjHy71zBdBWEyy++ IGwCTOVrhJtZi4Nso6KGFcS25ggs1sMA2GNnZlXIrITi96lv+M7RwDAMScLHTTd8hJbx mQLeIgeFygDFOAsm58U37eRzJPfPtUoKtRUoDY78w9ZSDMTbf6oGqdCp03mApiwr5iJo VdoCooVCZiv2UPwQO8hY1G++OW8S3sGJXE5A9ozXs/usFk+8sXQ+EOI/AxcW8Pky3MI3 UVQ8Z4F8MXr6fsFkpIUyqnJapz5GfzS68diFoc2NwQaqJs+Oe8YtLkjDuVX4/VqNoGdN g6dA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="x/6hA92u"; 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-75928-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75928-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.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 21:16:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75928-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="x/6hA92u"; 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-75928-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75928-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 980581C215E7 for ; Thu, 22 Feb 2024 05:16:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7EBE7179AA; Thu, 22 Feb 2024 05:15:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="x/6hA92u" Received: from mail-yb1-f201.google.com (mail-yb1-f201.google.com [209.85.219.201]) (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 3391C79F6 for ; Thu, 22 Feb 2024 05:15:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708578955; cv=none; b=k4TMDh6NbBOnrZpTxfVSgXuv3k7vO1BLlO4JBu10FnUa9ZPllgcfTDa/69FGHIMHvDHuHeyUdHX/PGPFvgt0Nom0zYAZGVK+vYi8a8zJcWrtXez8KdG8AdSAwuxg6sdynhyL0AjqYM2WmM5t1lWnAKEKZmHY/OC49O+hTWS5W9U= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708578955; c=relaxed/simple; bh=ROo+grb2X1drft9415Y+bp5FUcaXg0WwUm5KqmdBWXU=; h=Date:In-Reply-To:Message-Id:Mime-Version:References:Subject:From: To:Cc:Content-Type; b=EGJx0ZvcMI3oqpQEft5LZDZqv4rFActV5x+q+PwwnUtRC5vddXtxSL2wxtV1t+zPcCQHCQj6Ajy0JK7Vt2aEmJA5CJVPnA/t3G+G8WXm0tAhGl7X1W7BaNUZJhq7a5A8XaAcUbKoWkxfz/DW9KMaAliJ0sd230Wv1jupoKN8b2Q= 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=x/6hA92u; arc=none smtp.client-ip=209.85.219.201 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-f201.google.com with SMTP id 3f1490d57ef6-dc64b659a9cso13338830276.3 for ; Wed, 21 Feb 2024 21:15:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708578953; x=1709183753; darn=vger.kernel.org; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=b1TAt5v1M0YhGrOgA4n20TxtMypW+3VYDUodyHqRg4I=; b=x/6hA92ugkPQsCQwjo8fRm+s0u01mD22yFNZ9O7q+HsdF3CS60U6EKipVa6J7JwGB+ BODThSU8LKB3Beiz0kfd97tmToxYjgboACDO4u9328uI5onOFM53vEWzGKHPcFhL+v/L m4B5eASUI4fk4/XkqcmjXEkaVoXm3mWby+lq2MjT5jzIQj/7Q5MAnAVrqAeo+2q7Z/pN bdvoh7jr0EQQDB+tv8LR5Xu+xkM9p2eNpgp4F7YghoyYYOA0m17DgIrz+D+3qyGAkIrA CyEEi3qoqXYHQCTrqI26tZyATRk2+aIjfAVzv8e3LpdzHmHQ230kA5j1imDgC2m17eX8 478Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708578953; x=1709183753; h=cc:to:from:subject:references:mime-version:message-id:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=b1TAt5v1M0YhGrOgA4n20TxtMypW+3VYDUodyHqRg4I=; b=wBCjKNhFU8kg9Qij/Ro3T+b+ZQ2Q4GkbvPhN7l+ud5uXe3TJ1vufTThLIGscx0M23v WMf/mAM17ndk8q/7zAOqg5JLyD/USIzy37nah/CIO2FgAxQYv8qZ87pDQIrJjrEY7zDS EymbUBOLeb3FA+9d3nggb49YivBI0lGPzvHd+5K0knqZkBtVXXO7Wt9MsW+RvFWrdFXF Kvg9Y7KkzsCMppHUKNxMA9eyqRuv8kkODFDrbIPEq2MvfoYxcmrHRDDTZpAkRk5AYLsQ aNhszeNkqLiUyc1L4NKmxalN8HodNFPFqc7msruylghOOipSsxKmaCMxIUVLWyN/oayc Z3mQ== X-Forwarded-Encrypted: i=1; AJvYcCV5lhN0g8hhNwBLJcroeMJCyJ0w/TcNFceu46eJ2B03LRWiHrpViHpscl7Pd/pQ4kl0GB7FoFBpH2+llQs8wgn6ffclhm0xPpAbgucX X-Gm-Message-State: AOJu0YwJ6+Mq7JjsQB503WaYsJnZILyK+RES0WgmZyzTJPtnOHgOuopG bI12taKhru5f/ZWF8+glCSdS6kDZbPCGQH2lvQz4/Yy9q+DlDzNU1Pqs0V/rDGNQgdYDA3KIpPx Dw8dktvOZMwxVIA== X-Received: from saravanak.san.corp.google.com ([2620:15c:2d:3:451c:c6c5:1fb1:a2a1]) (user=saravanak job=sendgmr) by 2002:a05:6902:1109:b0:dc2:4ab7:3d89 with SMTP id o9-20020a056902110900b00dc24ab73d89mr369506ybu.1.1708578953292; Wed, 21 Feb 2024 21:15:53 -0800 (PST) Date: Wed, 21 Feb 2024 21:15:40 -0800 In-Reply-To: <20240222051539.3001988-3-saravanak@google.com> Message-Id: <20240222051539.3001988-4-saravanak@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240222051539.3001988-3-saravanak@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Subject: [PATCH 2/2] checkpatch: Don't check for unified diff format in git sendemail headers 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: 1791574925908805960 X-GMAIL-MSGID: 1791574925908805960 When checkpatch is used as a git sendemail-validate hook, it's also passed in the email header for sanity check. These headers are, as expected, not in unified diff format. So, don't complain about unified diff format for these header files. Signed-off-by: Saravana Kannan --- scripts/checkpatch.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f306634a938c..4312166ca828 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -7689,7 +7689,8 @@ sub process { exit(0); } - if (!$is_patch && $filename !~ /cover-letter\.patch$/) { + if (!$is_patch && $filename !~ /cover-letter\.patch$/ && + $filename !~ /\.git\/\.gitsendemail\.header\.\w+$/) { ERROR("NOT_UNIFIED_DIFF", "Does not appear to be a unified-diff format patch\n"); }