Repository navigation
Commit 48ca2d8
checkpatch: add new warnings to author signoff checks.
The author signed-off-by checks are currently very vague. Cases like same
name or same address are not handled separately.
For example, running checkpatch on commit be6577a ("parisc: Add
atomic64_set_release() define to avoid CPU soft lockups"), gives:
WARNING: Missing Signed-off-by: line by nominal patch author
'John David Anglin <dave.anglin@bell.net>'
The signoff line was:
"Signed-off-by: Dave Anglin <dave.anglin@bell.net>"
Clearly the author has signed off but with a slightly different version
of his name. A more appropriate warning would have been to point out
at the name mismatch instead.
Previously, the values assumed by $authorsignoff were either 0 or 1
to indicate whether a proper sign off by author is present.
Extended the checks to handle four new cases.
$authorsignoff values now denote the following:
0: Missing sign off by patch author.
1: Sign off present and identical.
2: Addresses and names match, but comments differ.
"James Watson(JW) <james@gmail.com>", "James Watson <james@gmail.com>"
3: Addresses match, but names are different.
"James Watson <james@gmail.com>", "James <james@gmail.com>"
4: Names match, but addresses are different.
"James Watson <james@watson.com>", "James Watson <james@gmail.com>"
5: Names match, addresses excluding subaddress details (RFC 5233) match.
"James Watson <james@gmail.com>", "James Watson <james+a@gmail.com>"
Also introduced a new message type FROM_SIGN_OFF_MISMATCH
for cases 2, 3, 4 and 5.
Suggested-by: Joe Perches <joe@perches.com>
Signed-off-by: Dwaipayan Ray <dwaipayanray1@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Joe Perches <joe@perches.com>
Link: https://lore.kernel.org/linux-kernel-mentees/c1ca28e77e8e3bfa7aadf3efa8ed70f97a9d369c.camel@perches.com/
Link: https://lkml.kernel.org/r/20201007192029.551744-1-dwaipayanray1@gmail.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent c70735c commit 48ca2d8
1 file changed
Lines changed: 77 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
| 1184 | + | |
1184 | 1185 | | |
1185 | 1186 | | |
1186 | | - | |
1187 | | - | |
| 1187 | + | |
1188 | 1188 | | |
1189 | 1189 | | |
1190 | 1190 | | |
| |||
1199 | 1199 | | |
1200 | 1200 | | |
1201 | 1201 | | |
1202 | | - | |
| 1202 | + | |
1203 | 1203 | | |
1204 | 1204 | | |
1205 | 1205 | | |
| 1206 | + | |
| 1207 | + | |
1206 | 1208 | | |
1207 | 1209 | | |
1208 | 1210 | | |
| |||
1215 | 1217 | | |
1216 | 1218 | | |
1217 | 1219 | | |
1218 | | - | |
| 1220 | + | |
1219 | 1221 | | |
1220 | | - | |
| 1222 | + | |
1221 | 1223 | | |
1222 | 1224 | | |
1223 | 1225 | | |
1224 | 1226 | | |
1225 | 1227 | | |
1226 | 1228 | | |
1227 | 1229 | | |
1228 | | - | |
| 1230 | + | |
1229 | 1231 | | |
1230 | 1232 | | |
1231 | 1233 | | |
1232 | | - | |
| 1234 | + | |
1233 | 1235 | | |
1234 | 1236 | | |
1235 | 1237 | | |
1236 | 1238 | | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1237 | 1243 | | |
1238 | | - | |
| 1244 | + | |
| 1245 | + | |
| 1246 | + | |
1239 | 1247 | | |
1240 | 1248 | | |
1241 | 1249 | | |
| |||
2365 | 2373 | | |
2366 | 2374 | | |
2367 | 2375 | | |
| 2376 | + | |
2368 | 2377 | | |
2369 | 2378 | | |
2370 | 2379 | | |
| |||
2692 | 2701 | | |
2693 | 2702 | | |
2694 | 2703 | | |
2695 | | - | |
2696 | | - | |
| 2704 | + | |
| 2705 | + | |
2697 | 2706 | | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
| 2718 | + | |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
2698 | 2735 | | |
2699 | 2736 | | |
2700 | 2737 | | |
| |||
2751 | 2788 | | |
2752 | 2789 | | |
2753 | 2790 | | |
2754 | | - | |
| 2791 | + | |
2755 | 2792 | | |
2756 | 2793 | | |
2757 | 2794 | | |
| |||
2761 | 2798 | | |
2762 | 2799 | | |
2763 | 2800 | | |
2764 | | - | |
| 2801 | + | |
2765 | 2802 | | |
2766 | | - | |
| 2803 | + | |
2767 | 2804 | | |
2768 | 2805 | | |
2769 | 2806 | | |
| |||
6943 | 6980 | | |
6944 | 6981 | | |
6945 | 6982 | | |
6946 | | - | |
6947 | | - | |
6948 | | - | |
| 6983 | + | |
| 6984 | + | |
| 6985 | + | |
| 6986 | + | |
| 6987 | + | |
| 6988 | + | |
| 6989 | + | |
| 6990 | + | |
| 6991 | + | |
| 6992 | + | |
| 6993 | + | |
| 6994 | + | |
| 6995 | + | |
| 6996 | + | |
| 6997 | + | |
| 6998 | + | |
| 6999 | + | |
| 7000 | + | |
| 7001 | + | |
| 7002 | + | |
| 7003 | + | |
| 7004 | + | |
| 7005 | + | |
| 7006 | + | |
| 7007 | + | |
| 7008 | + | |
| 7009 | + | |
6949 | 7010 | | |
6950 | 7011 | | |
6951 | 7012 | | |
| |||
0 commit comments