From nobody Fri Dec 19 05:06:50 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A514C001DB for ; Sat, 2 Sep 2023 16:06:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233987AbjIBQGA (ORCPT ); Sat, 2 Sep 2023 12:06:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230398AbjIBQF7 (ORCPT ); Sat, 2 Sep 2023 12:05:59 -0400 X-Greylist: delayed 902 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Sat, 02 Sep 2023 09:05:55 PDT Received: from mx1.elvees.com (mx1.elvees.com [37.203.242.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BF1390 for ; Sat, 2 Sep 2023 09:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; d=elvees.com; s=mx; c=simple/simple; t=1693669826; h=from:subject:to:date:message-id; bh=vbYC2iRx/P6skGaML7zVGae1Xvth8mpMiwxLuDO5wiM=; b=fu0B+6PEfJUlsZs1WiftHYBORXOo047eDEbHh019hfNBIP1d5w7HWUcJeeLCq4ohgDbTBCG6Ezq iGaBLmOHE5SHP15LKj//d7Svwt2tyY0fFfTcq1V7lY3ZUx5glBygX+Y8rm3Rrr5tCPbiDzk9XeoR7 h+HZFhyy3tbcrGOxQd6lZoZh4DGoGtdrLqKg6diAwW/vE2T30bGIX5jclBJ1/2yQitgg2u6VDHGD/ URQADjLGqFuPd3CaQ/kMADRaVJWA/jAmGIemWb9v5lvXag8eFIjF7E8WOP3NVs5mQ6QLNovfCTP5J 2ROjmzjU03BTm7NsaRJwAC5/eW52DBKBXd5w== From: Anton Leontiev To: CC: Andy Whitcroft , Joe Perches , Dwaipayan Ray , Lukas Bulwahn Subject: [PATCH] checkpatch: Avoid warnings for numbered references with URL Date: Sat, 2 Sep 2023 18:50:05 +0300 Message-ID: <20230902155006.1561074-1-aleontiev@elvees.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: mx1.elvees.com (192.168.65.4) To mx1.elvees.com (192.168.65.4) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Numbered references is one of the most frequently used ways to link external resources and them often exeed 75 chars. Add exception for these lines. Signed-off-by: Anton Leontiev --- scripts/checkpatch.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 7d16f863edf1..929574f43d4d 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3270,6 +3270,8 @@ sub process { # filename then : $line =3D~ /^\s*(?:Fixes:|$link_tags_search|$signature_tags)/i || # A Fixes:, link or signature tag line + $line =3D~ /^\s*\[\d+\]\s+[a-z][\w\.\+\-]*:\/\/\S+/i || + # reference with URL $commit_log_possible_stack_dump)) { WARN("COMMIT_LOG_LONG_LINE", "Prefer a maximum 75 chars per line (possible unwrapped commit des= cription?)\n" . $herecurr); --=20 2.41.0