Skip to contentSkip to conversation

HID: intel-ish-hid: ishtp-fw-loader: Fix a kernel-doc formatting issue

PATCH Applied Yang Li 3 participants 3 messages Dec 16, 2021 – Jan 6, 2022

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 HID: intel-ish-hid: ishtp-fw-loader: Fix a kernel-doc formatting issue

This function had kernel-doc that not used a hash to separate the function name from the one line description.

The warning was found by running scripts/kernel-doc, which is caused by using 'make W=1'.

drivers/hid/intel-ish-hid/ishtp-fw-loader.c:271: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

---
 drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ishtp-fw-loader.c +2 -1
index 0e1183e96147..e24988586710 100644
@@ -268,7 +268,8 @@ static int get_firmware_variant(struct ishtp_cl_data *client_data,
 }
 
 /**
- * loader_cl_send()	Send message from host to firmware
+ * loader_cl_send() - Send message from host to firmware
+ *
  * @client_data:	Client data instance
  * @out_msg:		Message buffer to be sent to firmware
  * @out_size:		Size of out going message
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

Hi,

Quoted 1 line · Yang Li

This function had kernel-doc that not used a hash to separate

that did not use a dash or hyphen to separate

Patch looks good. Thanks.

Quoted 30 lines

the function name from the one line description.

The warning was found by running scripts/kernel-doc, which is caused by using 'make W=1'.

drivers/hid/intel-ish-hid/ishtp-fw-loader.c:271: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

---
 drivers/hid/intel-ish-hid/ishtp-fw-loader.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/hid/intel-ish-hid/ishtp-fw-loader.c +2 -1
index 0e1183e96147..e24988586710 100644
@@ -268,7 +268,8 @@ static int get_firmware_variant(struct ishtp_cl_data *client_data,
 }
 
 /**
- * loader_cl_send()	Send message from host to firmware
+ * loader_cl_send() - Send message from host to firmware
+ *
  * @client_data:	Client data instance
  * @out_msg:		Message buffer to be sent to firmware
  * @out_size:		Size of out going message
Signature · 1 line
~Randy
maintainer Applied
#2 lore raw
In reply to Yang Li
Quoted 6 lines · Yang Li

This function had kernel-doc that not used a hash to separate the function name from the one line description.

The warning was found by running scripts/kernel-doc, which is caused by using 'make W=1'.

Quoted 6 lines

drivers/hid/intel-ish-hid/ishtp-fw-loader.c:271: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Applied, thanks.

Signature · 2 lines
Jiri Kosina
SUSE Labs