Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp43805rbb; Fri, 23 Feb 2024 11:06:00 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXvTs5Io3h36mfLp2+PYXoo292fo2nPbsbjLnz1spvxrugucKIxVix+AaEORPO+bBgjOUGo0OjCTW5icrZXLIqlQ2t9oLACbOvLNPaimQ== X-Google-Smtp-Source: AGHT+IGhHDK8ceZ+UsP2AlsS2ns4JJlwb7U0tcimMQb9EnUTym8P9G4PDEtDQ4WfRJliAL1obJ55 X-Received: by 2002:a05:6402:b37:b0:565:2e3d:d019 with SMTP id bo23-20020a0564020b3700b005652e3dd019mr646460edb.4.1708715159907; Fri, 23 Feb 2024 11:05:59 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708715159; cv=pass; d=google.com; s=arc-20160816; b=DcSwuI0etY7npVTbUYFYz7Yn4z4by1CRMDOYIGDbUfXRVG+JwMZvNXtVQy6rMsjBsO ktT6lb0nzn3fXmu5AnUOGaCXQWC+tstlEyEWfx5EEyfRvjTc0jKOSYHK6LkkzdGECBTZ HXN3vIDRNMoa0gpB1IeWeT9iN2VTusM0C+o9bPWLykovEPdyD5XSh1kfcUQS2OhnpzG1 PyMaaOyWnFtkdM0XJgj6/hGbc3I3sEeQTvpTkpEwQZ/dP9T0lB/yS4Rbpt0bI8jJVscc QgISZ5/lOEwi6bGvh2obPUc6e/NIQAw+D93oWQfqXk5zIc+dLWp9GuNyvfwuvJDkWUdY OUQg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=4v230DsXfCjAAZT8YLeLSGRy2+4z5zYxutuKPgHOFNE=; fh=TjByRaPfZUTFLNrwYrn21Alr3+eiZ/Pb6wA/HOH3row=; b=pznv6ffoiqIGGBMP/evhCyC8v9tcNohj9GaDuAB1LzWVle/66/uCk4Xy3kc+0OgwZs kA8C1o6fX1AfHFja+wQ5NMWIRHcqkDe1pi8iI+fgn3K91CkdPhGmUFxr4pihR3O5xEft b4IQcysCSOX/yXq76i+Gr6OnbNfjEq0nwWUvj4ns/C79bS6REtUwbdKoI1oi+fn1S6pz 1rcu/fC3WnUvaVTca3srkRkahIwAwSrVkhHTUhY/2Hea374MYRb2nGhYYLLT6bO/hRAH OZ7MvZRdfF/EzW7TGFL0oWsq5FKdA9ifRsBjOm7ZQxARwckKu1B1FOeIS40Omj8dJnCu it+Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="W/mI4Cfo"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-79014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id ch25-20020a0564021bd900b0056410009311si6552088edb.112.2024.02.23.11.05.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 11:05:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79014-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=@gmail.com header.s=20230601 header.b="W/mI4Cfo"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-79014-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79014-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 805931F23B18 for ; Fri, 23 Feb 2024 19:05:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F269D140362; Fri, 23 Feb 2024 19:05:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="W/mI4Cfo" Received: from mail-ej1-f49.google.com (mail-ej1-f49.google.com [209.85.218.49]) (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 7D99884FBB for ; Fri, 23 Feb 2024 19:05:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.49 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708715153; cv=none; b=Joptr2McWFyy4Aws8FP3J2U1UQaPmx7NTXDDrb579IPNXahDPH+wmG+D3ycewUnAkuFhXZwEW8ZTKI1W/WzD+0Y608WtTXoBsFp1xjIMaiF5snuBTBSPyVAY0MeRAasFYBqTdm/jcoYvCETgsiZwgdyVlEsCAgXmR+SNw55p0Lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708715153; c=relaxed/simple; bh=dTcSTLD5NaRZsXtXw/gX8tyEjyUskYI1wyAzmVqPvp0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=DQ6SbzmyMIl0ecybW8f5gLAr6/DZsM4h3sNXO47wLRug8/yYxwSUpkM4h96uCVXt6e/P3BAHTAjh+yGwBTOia5LUf0nB1wzxe2Y8NeX9FiXPf2orcQEle1USdyfkJYGqTXF/I8NdxBX1khEC9H8iu1HQwXS52NTLPpQyqBjOwyA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=W/mI4Cfo; arc=none smtp.client-ip=209.85.218.49 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f49.google.com with SMTP id a640c23a62f3a-a3e75e30d36so222549066b.1 for ; Fri, 23 Feb 2024 11:05:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1708715150; x=1709319950; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4v230DsXfCjAAZT8YLeLSGRy2+4z5zYxutuKPgHOFNE=; b=W/mI4Cfo27r/d8gKv1X1FQ5TuU9G+7ZCf3c7dPc+zXHrSL3fq/bVtA8RgkSmd1jn9a KHwSG7qAo+4ZMORjxG8wThCCoJpLUpElwQ1EuvY5J6iMrQkoDBPcDv3Gf9KSw2FgFg4y wGgMnzyZciQsZ8dzjt7QSZjNtAea7WYRplbEUAZW1q6jYYr6vmPWDDuf3pIvSqB+0Gry UuH4O3B1DtPaOWKE1ekgP+mn2ageg2Ejd6oVaSY8V9hbFdLGPRHSdqqshQ8q9JJPV2uE 6fB8yLMewivBKvW3bL+axoHXO2uEsQ7hHIVY3Bgnda7BDyYavdWqLpeP03RTaoKOdgdZ Jy9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708715150; x=1709319950; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4v230DsXfCjAAZT8YLeLSGRy2+4z5zYxutuKPgHOFNE=; b=jycRUJ+RENnswf+MNe8BS1u4oPz1B3dXvY3zY99xA9s4xJUz5+ppSV4pRrQpMxScCZ BenKI5XpyrtSF6wC3rJErdt64sx482pdrt4/4YF9h4qM4tBtT/d8iwJYmFI7VAtyemN9 Z693hFp7l+zT5jw/ksTUcbjRcopQXEoxmGk2ygUpuCoMg6lBw5ZOf6rAHkn+7PLvC+b+ BfQf25Wpge4A1T+qPx+19yD6CqE1uSEVHuk2/3M4sYxYx6Y2vCGjsH4tzkxJ5qIwF+l0 75SqDlj8m/hzamDzt5kNmFCHivaRVwCczeu8adSodajJZrvRDXqYsdhfc1OICqFPdaL+ CszA== X-Forwarded-Encrypted: i=1; AJvYcCXTKAMkJkvWPvIvikNPJeYdpho7/EkUf0TAzX0P1UWEMYrerDwCadBiVqljiSXzjGRKzjsulgxv8NB8YLVtI/ZbsotHypoZ7yxK1aQq X-Gm-Message-State: AOJu0YxJlg3qP5vV6JR6A/eRfLK/6+g+hSAHJ8ygkasP5KGll/Dl5n3z aJUIQoGZQHOUL4iqFmEGtvbklD6fLok/Xx5V//RgCBO3Y4+SytTuUW+HOge4f9mLjP2qhcLpU5G aEYWOskdPMHaGgdzVDn34FVBWyXs= X-Received: by 2002:a17:906:354d:b0:a3e:b57f:2b8a with SMTP id s13-20020a170906354d00b00a3eb57f2b8amr622190eja.10.1708715149625; Fri, 23 Feb 2024 11:05:49 -0800 (PST) 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> <20240222051539.3001988-4-saravanak@google.com> In-Reply-To: From: Lukas Bulwahn Date: Fri, 23 Feb 2024 20:05:39 +0100 Message-ID: Subject: Re: [PATCH 2/2] checkpatch: Don't check for unified diff format in git sendemail headers To: Saravana Kannan Cc: Joe Perches , Andy Whitcroft , Dwaipayan Ray , kernel-team@android.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, Feb 23, 2024 at 2:10=E2=80=AFAM Saravana Kannan wrote: > > On Thu, Feb 22, 2024 at 5:01=E2=80=AFPM Joe Perches wro= te: > > > > On Thu, 2024-02-22 at 16:45 -0800, Saravana Kannan wrote: > > > On Thu, Feb 22, 2024 at 12:54=E2=80=AFAM Joe Perches wrote: > > > > > > > > On Wed, 2024-02-21 at 21:15 -0800, Saravana Kannan wrote: > > > > > When checkpatch is used as a git sendemail-validate hook, it's al= so passed > > > > > in the email header for sanity check. > > > > > > > > Why? > > > > > > > > If so, why not use a front-end script to stop/remove > > > > the file from being scanned by checkpatch? > > > > > > Sure, I could do that. But this also makes it easier for people to > > > start using checkpatch. Or I can put up a git hook wrapper script in > > > here for people to symlink into their .git/hooks that does this. > > > > > > I'd prefer the lazy route of not creating a 1 line wrapper script :) > > > > I'd not. checkpatch is for _patches_. > > Don't feed stuff to it that isn't patches and expect good results. > > Would you be open to being a maintainer if I add a git hook > sendemail-validate wrapper? It feels silly to add myself as a > maintainer for a 1-line script. I'd rather give it to you :) > I agree with Joe's shrug. We got enough scripts, where very few (actually: probably nobody) know what they are good for. However, Saravana, if it helps you, feel free to add a section in the checkpatch documentation where you describe which workflow you have and in which files you need to set up what. So, in case you forget, you will find it in the documentation and possibly it is also helpful to others---if they read the documentation, or some AI bot reads the documentation in the future and then suggests it to someone asking that AI bot---well, that is our brave new world nowadays... I will maintain that section in the checkpatch documentation for you, if you submit the documentation change as a proper patch. Lukas