From 4ef1c34734a075d950cb81808ce632c09050211d Mon Sep 17 00:00:00 2001 From: Bryan Huntsman Date: Mon, 12 Feb 2018 17:26:10 -0800 Subject: [PATCH] checkpatch: allow copyright statements > 80 columns Exempt copyright statements from the 80 column rule as line-splitting or other kinds of work-arounds decrease readability in diffs. Identify the copyright statement by looking for '+/* Copyright (c)', case-insensitive, at the beginning of the line. Change-Id: I57aafd569ff2173ca7aa3f636532060fc93b2be1 Signed-off-by: Bryan Huntsman --- scripts/checkpatch.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl index 0fdb0738cdf4..0249b153651b 100755 --- a/scripts/checkpatch.pl +++ b/scripts/checkpatch.pl @@ -3246,6 +3246,10 @@ sub process { } elsif ($rawline =~ /^\+.*\b[a-z][\w\.\+\-]*:\/\/\S+/i) { $msg_type = ""; + # Long copyright statements are another special case + } elsif ($rawline =~ /^\+.\*.*copyright.*\(c\).*$/i) { + $msg_type = ""; + # Otherwise set the alternate message types # a comment starts before $max_line_length