[Concept,07/29] patman: Handle email-mismatch warning from checkpatch

Message ID 20260501110040.1874719-8-sjg@u-boot.org
State New
Headers
Series patman: Review-flow improvements and shared helpers |

Commit Message

Simon Glass May 1, 2026, 10:59 a.m. UTC
  From: Simon Glass <sjg@chromium.org>

The checkpatch "From:/Signed-off-by: email address mismatch" warning
has no file or line information, but is not in the list of known no-file
messages. This causes a "failed to find file / line information" error
during parsing.

Add 'email address mismatch' to the no-file pattern list so patman
reports it cleanly as a patch-level warning.

Signed-off-by: Simon Glass <sjg@chromium.org>
---

 tools/patman/checkpatch.py | 1 +
 1 file changed, 1 insertion(+)
  

Patch

diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py
index 6f99a36a08d..b6ddaad0924 100644
--- a/tools/patman/checkpatch.py
+++ b/tools/patman/checkpatch.py
@@ -94,6 +94,7 @@  def check_patch_parse_one_message(message):
     no_file_match = any(s in message for s in [
         '\nSubject:', 'Missing Signed-off-by:',
         'does MAINTAINERS need updating',
+        'email address mismatch',
         'should have a',
     ])