Skip to contentSkip to conversation

devtools: ignore new warnings on reported-by tag

PATCH Superseded Dariusz Sosnowski 3 participants 4 messages Aug 20, 2025

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtools: ignore new warnings on reported-by tag

There were 2 changes introduced in checkpatch.pl script [1][2] which verify if Reported-by tag is followed by Link or Closes tag. Example of the warning output:

WARNING:BAD_REPORTED_BY_LINK:
Reported-by: should be immediately followed by Closes:
with a URL to the report

Original purpose is to link the patch to the mailing list discussion and/or a bug report.

Since in DPDK these tags are not used, these warnings are false positives and can be ignored in devtools/checkpatches.sh.

[1]: https://github.com/torvalds/linux/commit/d7f1d71e5ef630ab9e15b5821d297a9e1a5fa1da
[2]: https://github.com/torvalds/linux/commit/44c31888098a590b8ec5ba37009e5a983f7c4b46

---
 devtools/checkpatches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/checkpatches.sh +1 -1
index 35037aa8f1..8c5b5d1380 100755
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL,BAD_REPORTED_BY_LINK"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
 print_usage () {
Signature · 1 line
2.39.5
Acked-by on v1 1/1
#1 lore raw
Quoted 27 lines · Dariusz Sosnowski

There were 2 changes introduced in checkpatch.pl script [1][2] which verify if Reported-by tag is followed by Link or Closes tag. Example of the warning output:

WARNING:BAD_REPORTED_BY_LINK:
Reported-by: should be immediately followed by Closes:
with a URL to the report

Original purpose is to link the patch to the mailing list discussion and/or a bug report.

Since in DPDK these tags are not used, these warnings are false positives and can be ignored in devtools/checkpatches.sh.

[1]: https://github.com/torvalds/linux/commit/d7f1d71e5ef630ab9e15b5821d297a9e1a5fa1da
[2]: https://github.com/torvalds/linux/commit/44c31888098a590b8ec5ba37009e5a983f7c4b46

---
 devtools/checkpatches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/checkpatches.sh +0 -0
index 35037aa8f1..8c5b5d1380 100755

devtools/checkpatches.sh VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\ · line 38

Quoted 7 lines
devtools/checkpatches.sh +1 -1
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL,BAD_REPORTED_BY_LINK"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
 
#2 lore raw
In reply to Dariusz Sosnowski

20/08/2025 11:50, Dariusz Sosnowski:

Quoted 8 lines

There were 2 changes introduced in checkpatch.pl script [1][2] which verify if Reported-by tag is followed by Link or Closes tag. Example of the warning output:

WARNING:BAD_REPORTED_BY_LINK:
Reported-by: should be immediately followed by Closes:
with a URL to the report

Quoted 5 lines

Original purpose is to link the patch to the mailing list discussion and/or a bug report.

Since in DPDK these tags are not used, these warnings are false positives and can be ignored in devtools/checkpatches.sh.

We use "Reported-by", it gives credit to people doing this precious work. But we don't mandate a link for this credit.

Quoted 19 lines

[1]: https://github.com/torvalds/linux/commit/d7f1d71e5ef630ab9e15b5821d297a9e1a5fa1da
[2]: https://github.com/torvalds/linux/commit/44c31888098a590b8ec5ba37009e5a983f7c4b46

---
 devtools/checkpatches.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/checkpatches.sh +1 -1
index 35037aa8f1..8c5b5d1380 100755
@@ -33,7 +33,7 @@ VOLATILE,PREFER_PACKED,PREFER_ALIGNED,PREFER_PRINTF,STRLCPY,\
 PREFER_KERNEL_TYPES,PREFER_FALLTHROUGH,BIT_MACRO,CONST_STRUCT,\
 SPLIT_STRING,LONG_LINE_STRING,C99_COMMENT_TOLERANCE,\
 LINE_SPACING,PARENTHESIS_ALIGNMENT,NETWORKING_BLOCK_COMMENT_STYLE,\
-NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL"
+NEW_TYPEDEFS,COMPARISON_TO_NULL,AVOID_BUG,EXPORT_SYMBOL,BAD_REPORTED_BY_LINK"
 options="$options $DPDK_CHECKPATCH_OPTIONS"
#3 lore raw
Quoted 9 lines · Thomas Monjalon

20/08/2025 11:50, Dariusz Sosnowski:

Quoted 8 lines

There were 2 changes introduced in checkpatch.pl script [1][2] which verify if Reported-by tag is followed by Link or Closes tag. Example of the warning output:

WARNING:BAD_REPORTED_BY_LINK:
Reported-by: should be immediately followed by Closes:
with a URL to the report

Quoted 8 lines
Quoted 5 lines

Original purpose is to link the patch to the mailing list discussion and/or a bug report.

Since in DPDK these tags are not used, these warnings are false positives and can be ignored in devtools/checkpatches.sh.

We use "Reported-by", it gives credit to people doing this precious work. But we don't mandate a link for this credit.

Sorry, maybe my commit message was misleading.
I was referring to Link and Closes tags in that last sentence.

The new check in checkpatch.pl will warn if there is no Link or Closes tag assuming Reported-by is present.
It does not warn on Reported-by itself.

Quoted 1 line

/* snip */