]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
checkpatch: allow http links of any length in commit logs
authorJoe Perches <joe@perches.com>
Sun, 10 Aug 2025 04:31:10 +0000 (21:31 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 14 Sep 2025 00:32:45 +0000 (17:32 -0700)
Dave Gilbert noticed that checkpatch warns about URL links over 75 chars
in length in commit logs.

Fix that.

Link: https://lkml.kernel.org/r/3529faaf84a5a9a96c5c0ec4183ae0ba6e97673c.camel@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: Dave Gilbert <linux@treblig.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/checkpatch.pl

index e722dd6fa8ef3d7062988e2b3ec8f5872bdfefeb..319cc5f858858b23bb9516c7ad7c4a9800770f80 100755 (executable)
@@ -3294,7 +3294,7 @@ sub process {
                                        # file delta changes
                      $line =~ /^\s*(?:[\w\.\-\+]*\/)++[\w\.\-\+]+:/ ||
                                        # filename then :
-                     $line =~ /^\s*(?:Fixes:|$link_tags_search|$signature_tags)/i ||
+                     $line =~ /^\s*(?:Fixes:|https?:|$link_tags_search|$signature_tags)/i ||
                                        # A Fixes:, link or signature tag line
                      $commit_log_possible_stack_dump)) {
                        WARN("COMMIT_LOG_LONG_LINE",