platform/x86: thinkpad_acpi: fix kernel-doc warnings
PATCH 1/1 platform/x86: thinkpad_acpi: fix kernel-doc warnings
Add a function's return description and don't misuse "/**" for non-kernel-doc comments to prevent warnings from scripts/kernel-doc.
thinkpad_acpi.c:523: warning: No description found for return value of 'tpacpi_check_quirks'
thinkpad_acpi.c:9307: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst thinkpad_acpi.c:9307: warning: missing initial short description on line:
* This evaluates a ACPI method call specific to the battery
--- drivers/platform/x86/thinkpad_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/platform/x86/thinkpad_acpi.c +3 -3
@@ -512,10 +512,10 @@ struct tpacpi_quirk {* Iterates over a quirks list until one is found that matches the * ThinkPad's vendor, BIOS and EC model. * -* Returns 0 if nothing matches, otherwise returns the quirks field of +* Returns: %0 if nothing matches, otherwise returns the quirks field of * the matching &struct tpacpi_quirk entry. * -* The match criteria is: vendor, ec and bios much match. +* The match criteria is: vendor, ec and bios must match. */ static unsigned long __init tpacpi_check_quirks( const struct tpacpi_quirk *qlist,
@@ -9303,7 +9303,7 @@ static struct tpacpi_battery_driver_data/* ACPI helpers/functions/probes */ -/** +/* * This evaluates a ACPI method call specific to the battery * ACPI extension. The specifics are that an error is marked * in the 32rd bit of the response, so we just check that here.
Hi Randy
Quoted 26 lines · Randy Dunlap
Add a function's return description and don't misuse "/**" for non-kernel-doc comments to prevent warnings from
scripts/kernel-doc.thinkpad_acpi.c:523: warning: No description found for return value of '
tpacpi_check_quirks'
thinkpad_acpi.c:9307: warning: This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rstthinkpad_acpi.c:9307: warning: missing initial short description on line:
* This evaluates a ACPI method call specific to the batterySigned-off-by Randy Dunlap <[email protected]>Cc Henrique de Moraes Holschuh <[email protected]>Cc Hans de Goede <[email protected]>Cc "Ilpo Järvinen" <[email protected]>--- drivers/platform/x86/thinkpad_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)diff --
a/drivers/platform/x86/thinkpad_acpi.cb/drivers/platform/x86/thinkpad_acpi.c
drivers/platform/x86/thinkpad_acpi.c struct tpacpi_quirk { · line 515
Quoted 5 lines
drivers/platform/x86/thinkpad_acpi.c +1
-1@@ -512,10 +512,10 @@ struct tpacpi_quirk {* Iterates over a quirks list until one is found that matches the * ThinkPad's vendor, BIOS and EC model. * -* Returns 0 if nothing matches, otherwise returns the quirks field of +* Returns: %0 if nothing matches, otherwise returns the quirks field
Just being nosy - what does %0 do?
I assume it helps with the return value but was intrigued how it is used and where
Quoted 5 lines
of
* the matching &structtpacpi_quirkentry.
*
- * The match criteria is: vendor, ec and bios much match.
+ * The match criteria is: vendor, ec and bios must match.
I can't for the life of me see what is different here. What am I missing?
Quoted 14 lines
*/
static unsigned long__inittpacpi_check_quirks(drivers/platform/x86/thinkpad_acpi.c +1
-1const struct tpacpi_quirk *qlist,@@ -9303,7 +9303,7 @@ static struct tpacpi_battery_driver_data/* ACPI helpers/functions/probes */ -/** +/* * This evaluates a ACPI method call specific to the battery * ACPI extension. The specifics are that an error is marked * in the 32rd bit of the response, so we just check that here.
Quoted 4 lines
_______________________________________________
ibm-acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
Thanks
Mark
Hi Mark,
Quoted 24 lines · Mark Pearson
Hi Randy
Quoted 21 lines · Randy Dunlap
Add a function's return description and don't misuse "/**" for non-kernel-doc comments to prevent warnings from
scripts/kernel-doc.thinkpad_acpi.c:523: warning: No description found for return value of '
tpacpi_check_quirks'
thinkpad_acpi.c:9307: warning: This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rstthinkpad_acpi.c:9307: warning: missing initial short description on line:
* This evaluates a ACPI method call specific to the batterySigned-off-by Randy Dunlap <[email protected]>Cc Henrique de Moraes Holschuh <[email protected]>Cc Hans de Goede <[email protected]>Cc "Ilpo Järvinen" <[email protected]>--- drivers/platform/x86/thinkpad_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Quoted 13 lines
drivers/platform/x86/thinkpad_acpi.c struct tpacpi_quirk { · line 515
Quoted 10 lines
diff --
a/drivers/platform/x86/thinkpad_acpi.cb/drivers/platform/x86/thinkpad_acpi.cdrivers/platform/x86/thinkpad_acpi.c +1
-1@@ -512,10 +512,10 @@ struct tpacpi_quirk {* Iterates over a quirks list until one is found that matches the * ThinkPad's vendor, BIOS and EC model. * -* Returns 0 if nothing matches, otherwise returns the quirks field of +* Returns: %0 if nothing matches, otherwise returns the quirks field Just being nosy - what does %0 do?
I assume it helps with the return value but was intrigued how it is used and where
It causes the output to be formatted as a CONSTANT (probably monospaced font, but no guarantees on that).
Quoted 7 lines
Quoted 6 lines
of
* the matching &structtpacpi_quirkentry.
*
- * The match criteria is: vendor, ec and bios much match.
+ * The match criteria is: vendor, ec and bios must match.I can't for the life of me see what is different here. What am I missing?
s/much/must/
Quoted 22 lines
Quoted 15 lines
*/
static unsigned long__inittpacpi_check_quirks(drivers/platform/x86/thinkpad_acpi.c +1
-1const struct tpacpi_quirk *qlist,@@ -9303,7 +9303,7 @@ static struct tpacpi_battery_driver_data/* ACPI helpers/functions/probes */ -/** +/* * This evaluates a ACPI method call specific to the battery * ACPI extension. The specifics are that an error is marked * in the 32rd bit of the response, so we just check that here. Quoted 4 lines
_______________________________________________
ibm-acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-develThanks
Mark
Signature · 1 line
~Randy
Mark Pearson
Reviewed-byQuoted 41 lines · Randy Dunlap
Hi Mark,
Quoted 24 lines · Mark Pearson
Hi Randy
Quoted 21 lines · Randy Dunlap
Add a function's return description and don't misuse "/**" for non-kernel-doc comments to prevent warnings from
scripts/kernel-doc.thinkpad_acpi.c:523: warning: No description found for return value of '
tpacpi_check_quirks'
thinkpad_acpi.c:9307: warning: This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rstthinkpad_acpi.c:9307: warning: missing initial short description on line:
* This evaluates a ACPI method call specific to the batterySigned-off-by Randy Dunlap <[email protected]>Cc Henrique de Moraes Holschuh <[email protected]>Cc Hans de Goede <[email protected]>Cc "Ilpo Järvinen" <[email protected]>--- drivers/platform/x86/thinkpad_acpi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)Quoted 13 lines
drivers/platform/x86/thinkpad_acpi.c struct tpacpi_quirk { · line 515
Quoted 10 lines
diff --
a/drivers/platform/x86/thinkpad_acpi.cb/drivers/platform/x86/thinkpad_acpi.cdrivers/platform/x86/thinkpad_acpi.c +1
-1@@ -512,10 +512,10 @@ struct tpacpi_quirk {* Iterates over a quirks list until one is found that matches the * ThinkPad's vendor, BIOS and EC model. * -* Returns 0 if nothing matches, otherwise returns the quirks field of +* Returns: %0 if nothing matches, otherwise returns the quirks field Just being nosy - what does %0 do?
I assume it helps with the return value but was intrigued how it is used and where
Quoted 2 lines
It causes the output to be formatted as a CONSTANT (probably monospaced font, but no guarantees on that).
Ah - cool. Thanks!
Quoted 10 lines
Quoted 8 lines
Quoted 7 lines
of
* the matching &structtpacpi_quirkentry.
*
- * The match criteria is: vendor, ec and bios much match.
+ * The match criteria is: vendor, ec and bios must match.I can't for the life of me see what is different here. What am I missing?
s/much/must/
Man....I need to go to the opticians :)
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
*/
static unsigned long__inittpacpi_check_quirks(drivers/platform/x86/thinkpad_acpi.c +1
-1const struct tpacpi_quirk *qlist,@@ -9303,7 +9303,7 @@ static struct tpacpi_battery_driver_data/* ACPI helpers/functions/probes */ -/** +/* * This evaluates a ACPI method call specific to the battery * ACPI extension. The specifics are that an error is marked * in the 32rd bit of the response, so we just check that here.
Quoted 10 lines
Quoted 7 lines
Quoted 4 lines
_______________________________________________
ibm-acpi-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-develThanks
MarkSignature · 1 line
~Randy
Looks good to me!
Mark
Ilpo Järvinen
maintainerQuoted 9 lines · Randy Dunlap
Add a function's return description and don't misuse "/**" for non-kernel-doc comments to prevent warnings from
scripts/kernel-doc.thinkpad_acpi.c:523: warning: No description found for return value of '
tpacpi_check_quirks'
thinkpad_acpi.c:9307: warning: This comment starts with '/**', but isn't a kernel-doc comment. ReferDocumentation/doc-guide/kernel-doc.rstthinkpad_acpi.c:9307: warning: missing initial short description on line:
* This evaluates a ACPI method call specific to the battery[...]
Thank you for your contribution, it has been applied to my local review-ilpo branch. Note it will show up in the public platform-drivers-x86/review-ilpo branch only once I've pushed my local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: thinkpad_acpi: fix kernel-doc warnings
commit: 17fe3ec0c110b4afc04052e2a33b146766aac8a1
--
i.