From nobody Sat Feb 7 21:24:49 2026 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 A81C530B53F for ; Fri, 14 Nov 2025 23:32:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763163138; cv=none; b=SaVvuYo7fqTeAvLAaXOyr7+W3FNCJ4WC0FUB/lROaVWe6chfdC5Nd2h0bjOMkjK/DzIxWTz4x/fCBcEsOuJav00mTz1xHJMbDy9shSfi4mIn8JHm1ANo8aES0fGRLN+7OsJQml2xpOsXmfdlm8OwA7kfUmS5BY2K4wKHVCovEbs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763163138; c=relaxed/simple; bh=9jKOr+gsKFpKRQ5CI4StAxgZDZY6ZWNe3xhYtWTiMhk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=MvMzhgwWX0r66+RCabr2007i4SawS78fbwlA2u8AmJyicJyIBwysJkXskMP9ZuOW4UOh4q3CVu2pBmpK527ATNQFzW5EoHKisSY/k1YxshjglqX9v+zVrydBdWsGOXNV7ZoOE4mStlYnRIZd8JjpvLFN1QBR739RKGdOFpe6p2s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ynaffit.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=JoKgBZzg; arc=none smtp.client-ip=209.85.216.73 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--ynaffit.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="JoKgBZzg" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-343e17d7ed5so2722146a91.0 for ; Fri, 14 Nov 2025 15:32:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1763163135; x=1763767935; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=t2hbVQbuJBMFEzTcW9W5I9xrEBMKSTN1vdat95AZ1rI=; b=JoKgBZzgUPbVxDibNyWH5tjntvgOVK6NokAA9diBgKCDmtQ96P4sWTte5LmDGbHiTk d64BCCTnkXFHQml/VYMXybp2RoCOue5ZKTFkDHsAtizOWxgeLCu1xHY8jtOmuivOSOIa 53I+ek69QnTWDV2Zo9+gMcPHNKsYN5cHEIZhYGAX+TPMvc8AQM77Q0dFkgr8nVjAmlJI R/bW98khUp6Hx97gAJStxCpnZHNsnhE2cONFwZ0Jji3IiYvNhx766hHuZgj+g9r/uu+M QaiSrrc4m6y10Nfg703t0GVkkuEzk+mU4o5Xo0a/QdxMOgDhnzOVpTaqRCa1Bb0eM3aE neiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763163135; x=1763767935; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=t2hbVQbuJBMFEzTcW9W5I9xrEBMKSTN1vdat95AZ1rI=; b=jme3OYOEhgGCj4WLES1XJoenx7wLiW17zg0HoM86UV/MTk0SZ7uGb8JvOkD4T6mhZe qjg3QEqJFcTZi7qHJMCqyfKxiLcViAu7JBeZ36VlZGbgbiDRI5yrwFsAIPxw+sG79hfl jERh7f6YjO2QtF13SkC3Ag3Hnl05lrWaV9I+XGfl3zD1Vj6IYdcSVz9gZIe5GGlUA2ZF 7hTM+0Rp582u+iNHAU4oIPn9Euzs4gRhKy/zxjKlFWQyLFfqRdx7Vas1TaDFPw3Qyey7 GorMBhBILOYXl61/6qrQe33HnjUf91R/YqZdCXqptPksv2Pjob7NFQzucez1RwHrzaKp 6+qA== X-Gm-Message-State: AOJu0YwtBDa2oPycq9aDTEqD8eqdz3YhpY3oRMMePVmMaxooyklLUlmV 0n2J/acGGPFFU46oXt4um7sPzoWwSxi71DNXyAy+H2CrZeXQA7MDPaFJhhBNDkHVvipiYOHwPVj ZK3oFe8OH0AC3SGFsWXsq8CgOAHgeT7Ss0W9RnlzIMid8COjGLKZmUtdcvMTEL+LGvTx8bmCxkv dePFwl53t1jHLhlz13n+XcD63sipyWWCAmo5nlatf4SxrF+uRIqg== X-Google-Smtp-Source: AGHT+IGU0ePOpJZ1DZBAAmbE7MGX4M0wq7SVt8D/8Wbpe3DmUJofOmUkPy7ntgdkbh5glxaLtBW+Otz3a8Te X-Received: from dlk14.prod.google.com ([2002:a05:7022:10e:b0:119:49ca:6b98]) (user=ynaffit job=prod-delivery.src-stubby-dispatcher) by 2002:a05:701a:ca8e:b0:11a:2744:b509 with SMTP id a92af1059eb24-11b4120f9d1mr1703959c88.37.1763163135413; Fri, 14 Nov 2025 15:32:15 -0800 (PST) Date: Fri, 14 Nov 2025 15:31:53 -0800 In-Reply-To: <20251114233150.396974-4-ynaffit@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251114233150.396974-4-ynaffit@google.com> X-Mailer: git-send-email 2.52.0.rc1.455.g30608eb744-goog Message-ID: <20251114233150.396974-6-ynaffit@google.com> Subject: [PATCH] checkpatch: Allow bare SHA-1 hashes in checkpatch commits From: Tiffany Yang To: linux-kernel@vger.kernel.org Cc: kernel-team@android.com, Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Commit messages for changes to checkpatch may use the output of the "--git" option to illustrate the changed behavior. For example: ./scripts/checkpatch.pl --git d1934ed9803c Don't report an improperly formed commit description when the SHA-1 hash is being used as an example input to the checkpatch script. Signed-off-by: Tiffany Yang --- scripts/checkpatch.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index f9d14115c416..c81787538b35 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3358,6 +3358,7 @@ sub process { $in_commit_log && !$commit_log_possible_stack_dump && $line !~ /^\s*(?:Link|Patchwork|http|https|BugLink|base-commit):/i && $line !~ /^This reverts commit [0-9a-f]{7,40}/ && + $line !~ /^\s*(?:(\$|%)\s+)?\.\/scripts\/checkpatch\.pl\s(?:-g|--git= )\s[0-9a-f]{5,40}/ && (($line =3D~ /\bcommit\s+[0-9a-f]{5,}\b/i || ($line =3D~ /\bcommit\s*$/i && defined($rawlines[$linenr]) && $raw= lines[$linenr] =3D~ /^\s*[0-9a-f]{5,}\b/i)) || ($line =3D~ /(?:\s|^)[0-9a-f]{12,40}(?:[\s"'\(\[]|$)/i && --=20 2.52.0.rc1.455.g30608eb744-goog