summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maennich <maennich@google.com>2024-04-19 14:54:24 +0000
committerMatthias Männich <maennich@google.com>2024-04-19 15:18:32 +0000
commitef4ebfcfe58a3caa7bf45b61d81c96a3849ca3a2 (patch)
tree16efd6de9ce77187e71bbd133a14aa40e9395971
parent5eb75452ab056f40800081f46913063f69313d1f (diff)
downloadbuild-main-kernel-build-2023.tar.gz
checkpatch: skip revert commitsmain-kernel-build-2023
Those patches are regularly violating the code style but not much can be done about that. Suggested-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I7a0bfc81895ed69bc3aad91d78cb74cd9977f852 Signed-off-by: Matthias Maennich <maennich@google.com> (cherry picked from commit 839c9ae0a06013e9a95e795cf70df916d4a81d48)
-rwxr-xr-xkleaf/impl/checkpatch.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/kleaf/impl/checkpatch.sh b/kleaf/impl/checkpatch.sh
index a9dedfd..993ec1f 100755
--- a/kleaf/impl/checkpatch.sh
+++ b/kleaf/impl/checkpatch.sh
@@ -138,6 +138,11 @@ if [[ "$SUBJECT" =~ ^UPSTREAM|^BACKPORT|^FROMGIT ]]; then
exit 0
fi
+if [[ "$SUBJECT" =~ ^Revert ]]; then
+ echo "Not linting revert patches for "${DIR}". Skipping this check."
+ exit 0
+fi
+
# Now run checkpatch.pl on DIR: GIT_SHA1
# Below is the equivalent of build/kernel/static_analysis/checkpatch.sh