checkpatch: correct false positives reporting instructions
authorPaul Fertser <fercerpav@gmail.com>
Sat, 26 Oct 2013 07:34:22 +0000 (11:34 +0400)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sun, 18 Sep 2022 08:18:23 +0000 (08:18 +0000)
This is the old commit 75b4cbe35646 ("checkpatch: correct false
positives reporting instructions") re-applied.

Change-Id: I348ae549e9d2587093b0fb6652aadf34724f0aab
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/5121
Tested-by: jenkins
tools/scripts/checkpatch.pl

index 762e9ed821dbff214f4c3b844ce8d740abff472f..aa3e63743a39bff5d459906b3ff2773e42a933b9 100755 (executable)
@@ -1342,11 +1342,21 @@ NOTE: perl $^V is not modern enough to detect all possible issues.
 EOM
        }
        if ($exit) {
+               if (!$OpenOCD) {
                print << "EOM"
 
 NOTE: If any of the errors are false positives, please report
       them to the maintainer, see CHECKPATCH in MAINTAINERS.
 EOM
+               } # !$OpenOCD
+               # OpenOCD specific: Begin
+               print << "EOM"
+
+NOTE: If any of the errors are false positives, please report
+      them to the openocd-devel mailing list or prepare a patch
+      and send it to Gerrit for review.
+EOM
+               # OpenOCD specific: End
        }
 }