checkpatch.pl warning on "added, moved or deleted" messed up
I ran checkpatch on my
[PATCH 0/2] migration: Drop deprecated QMP stuff
Message-ID: <[email protected]>
and got
$ scripts/checkpatch.pl --terse *patch
0001-migration-Drop-deprecated-QMP-command-query-migratio.patch:290: WARNING: added, moved or deleted file(s):
total: 0 errors, 1 warnings, 129 lines checkedThe culprit seems to be commit 1d745e6d963 (scripts/checkpatch: use new hook for MAINTAINERS update check). If I use the version immediately preceding it, I get:
0001-migration-Drop-deprecated-QMP-command-query-migratio.patch:105: WARNING: added, moved or deleted file(s), does MAINTAINERS need updating?
total: 0 errors, 1 warnings, 129 lines checked
Quoted 11 lines · Markus Armbruster
I ran checkpatch on my
[PATCH 0/2] migration: Drop deprecated QMP stuff
Message-ID: <[email protected]>and got
$ scripts/checkpatch.pl --terse *patch 0001-migration-Drop-deprecated-QMP-command-query-migratio.patch:290: WARNING: added, moved or deleted file(s): total: 0 errors, 1 warnings, 129 lines checked
Quoted 6 lines
The culprit seems to be commit
1d745e6d963(scripts/checkpatch: use new hook forMAINTAINERSupdate check). If I use the version immediately preceding it, I get:0001-migration-Drop-deprecated-QMP-command-query-migratio.patch:105: WARNING: added, moved or deleted file(s), does
MAINTAINERSneed updating?
total: 0 errors, 1 warnings, 129 lines checked
Hmm, the problem is the --terse command is rather crude and simply throws away everything except the first line of text. My commit made the verbose output multi-line to improve readability
$ ./scripts/checkpatch.pl ~/dep WARNING: added, moved or deleted file(s):
migration/threadinfo.h
migration/threadinfo.c
Does MAINTAINERS need updating?
total: 0 errors, 1 warnings, 193 lines checked
/var/home/berrange/dep has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
but this inadvertantly made terse output worse :-(
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 31 lines · Daniel P. Berrangé
Quoted 11 lines · Markus Armbruster
I ran checkpatch on my
[PATCH 0/2] migration: Drop deprecated QMP stuff
Message-ID: <[email protected]>and got
$ scripts/checkpatch.pl --terse *patch 0001-migration-Drop-deprecated-QMP-command-query-migratio.patch:290: WARNING: added, moved or deleted file(s): total: 0 errors, 1 warnings, 129 lines checkedQuoted 6 lines
The culprit seems to be commit
1d745e6d963(scripts/checkpatch: use new hook forMAINTAINERSupdate check). If I use the version immediately preceding it, I get:0001-migration-Drop-deprecated-QMP-command-query-migratio.patch:105: WARNING: added, moved or deleted file(s), does
MAINTAINERSneed updating?
total: 0 errors, 1 warnings, 129 lines checkedHmm, the problem is the --terse command is rather crude and simply throws away everything except the first line of text. My commit made the verbose output multi-line to improve readability
$ ./scripts/checkpatch.pl ~/dep WARNING: added, moved or deleted file(s):
migration/threadinfo.h
migration/threadinfo.cDoes
MAINTAINERSneed updating?
Quoted 8 lines
total: 0 errors, 1 warnings, 193 lines checked
/var/home/berrange/dephas style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH inMAINTAINERS.but this inadvertantly made terse output worse :-(
Aha!
I posted a patch, Message-ID: <[email protected]>
Thanks!