Skip to contentSkip to conversation

kernel-doc: Aling quick help and the code

PATCH In review Andy Shevchenko 3 participants 4 messages Dec 15, 2023 – Dec 19, 2023 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel-doc: Aling quick help and the code

The update to the quick help mentions -Wshort-description, but code never supported for that. Align that with the code by allowing
both: -Wshort-description and -Wshort-desc.

Fixes 56b0f453db74 ("kernel-doc: don't let V=1 change outcome")
---
 scripts/kernel-doc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/kernel-doc +2 -2
index 0a890fe4d22b..7d7ed3e43946 100755
@@ -23,7 +23,7 @@ kernel-doc - Print formatted kernel documentation to stdout
 
 =head1 SYNOPSIS
 
- kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-description] [-Wcontents-before-sections]
+ kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-desc[ription]] [-Wcontents-before-sections]
    [ -man |
      -rst [-sphinx-version VERSION] [-enable-lineno] |
      -none
@@ -328,7 +328,7 @@ while ($ARGV[0] =~ m/^--?(.*)/) {
 	$Werror = 1;
     } elsif ($cmd eq "Wreturn") {
 	$Wreturn = 1;
-    } elsif ($cmd eq "Wshort-desc") {
+    } elsif ($cmd eq "Wshort-desc" or $cmd eq "Wshort-description") {
 	$Wshort_desc = 1;
     } elsif ($cmd eq "Wcontents-before-sections") {
 	$Wcontents_before_sections = 1;
Signature · 1 line
2.43.0.rc1.1.gbec44491f096
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Andy Shevchenko

The update to the quick help mentions -Wshort-description, but code never supported for that. Align that with the code by allowing
both: -Wshort-description and -Wshort-desc.

Fixes 56b0f453db74 ("kernel-doc: don't let V=1 change outcome")

Thanks.

(Note: in Subject, s/Aling/Align/)

Quoted 26 lines
---
 scripts/kernel-doc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
scripts/kernel-doc +2 -2
index 0a890fe4d22b..7d7ed3e43946 100755
@@ -23,7 +23,7 @@ kernel-doc - Print formatted kernel documentation to stdout
 
 =head1 SYNOPSIS
 
- kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-description] [-Wcontents-before-sections]
+ kernel-doc [-h] [-v] [-Werror] [-Wall] [-Wreturn] [-Wshort-desc[ription]] [-Wcontents-before-sections]
    [ -man |
      -rst [-sphinx-version VERSION] [-enable-lineno] |
      -none
@@ -328,7 +328,7 @@ while ($ARGV[0] =~ m/^--?(.*)/) {
 	$Werror = 1;
     } elsif ($cmd eq "Wreturn") {
 	$Wreturn = 1;
-    } elsif ($cmd eq "Wshort-desc") {
+    } elsif ($cmd eq "Wshort-desc" or $cmd eq "Wshort-description") {
 	$Wshort_desc = 1;
     } elsif ($cmd eq "Wcontents-before-sections") {
 	$Wcontents_before_sections = 1;
Signature · 3 lines
#Randy
https://people.kernel.org/tglx/notes-about-netiquette
https://subspace.kernel.org/etiquette.html
#2 lore raw
Quoted 9 lines · Randy Dunlap
Quoted 6 lines · Andy Shevchenko

The update to the quick help mentions -Wshort-description, but code never supported for that. Align that with the code by allowing
both: -Wshort-description and -Wshort-desc.

Fixes 56b0f453db74 ("kernel-doc: don't let V=1 change outcome")

Thank you!

Quoted 1 line

(Note: in Subject, s/Aling/Align/)

Indeed, Jonathan, can you fix when applying?

Signature · 2 lines
With Best Regards,
Andy Shevchenko
maintainer
#3 lore raw
Quoted 9 lines · Andy Shevchenko
Quoted 8 lines · Randy Dunlap
Quoted 6 lines · Andy Shevchenko

The update to the quick help mentions -Wshort-description, but code never supported for that. Align that with the code by allowing
both: -Wshort-description and -Wshort-desc.

Fixes 56b0f453db74 ("kernel-doc: don't let V=1 change outcome")
Quoted 7 lines
Quoted 1 line

Thank you!

Quoted 1 line

(Note: in Subject, s/Aling/Align/)

Indeed, Jonathan, can you fix when applying?

Done.

Thanks,

jon