Whamcloud - gitweb
LU-16634 build: improve checkpatch warnings 31/50331/8
authorAndreas Dilger <adilger@whamcloud.com>
Sat, 18 Mar 2023 01:03:49 +0000 (19:03 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 4 Apr 2023 14:33:06 +0000 (14:33 +0000)
commitfe13a1b01c61801065571b4049e8c6bd544742b7
tree4cb1b155683accca30965c29b9d95f57240bbec5
parent616fa9b581798e1b66e4d36113c29531ad7e41a0
LU-16634 build: improve checkpatch warnings

Change checkpatch.pl to allow RETURN/GOTO as "end of switch case".

Improve CERROR/CWARN/LCONSOLE/CDEBUG message checking/warning to
print more useful message style advice than just "think hard".

Allow "DFID|DOSTID" within long error strings without complaint.

Add a spelling.txt rule to warn if version checks are added in a
test for future versions.  This is mostly useful for maintenance
branches when patches are being backported with test cases.

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I1a0d2f839949debf346aa15c65b0f407e0ce7057
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50331
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
contrib/scripts/checkpatch.pl
contrib/scripts/spelling.txt