Skip to contentSkip to conversation

linux-next: build warning after merge of the hid tree

PATCH In review Stephen Rothwell 3 participants 4 messages Nov 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the hid tree, today's linux-next build (htmldocs) produced this warning:

include/linux/mod_devicetable.h:909: warning: Function parameter or member 'guid' not described in 'ishtp_device_id'

Introduced by commit

fa443bc3c1e4 ("HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE()")

I also notice that there is a @context description, but no field.

Signature · 2 lines
Cheers,
Stephen Rothwell
maintainer
#1 lore raw
Quoted 5 lines · Stephen Rothwell

Hi all,

After merging the hid tree, today's linux-next build (htmldocs) produced this warning:

Quoted 7 lines

include/linux/mod_devicetable.h:909: warning: Function parameter or member 'guid' not described in 'ishtp_device_id'

Introduced by commit

fa443bc3c1e4 ("HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE()")

I also notice that there is a @context description, but no field.

Thanks for spotting it. The kerneldoc is clearly wrong there both on the 'guid' member name, and also the description (mind the '36 char' part, where it should have been '16 char' instead).

Thomas, could you please send me a fixup patch for that?

Thanks,

Signature · 2 lines
Jiri Kosina
SUSE Labs
#2 lore raw

PATCH 1/1 mod_devicetable: fix kdocs for ishtp_device_id

In reply to Stephen Rothwell

The kdocs were copied from another device_id struct and not adapted.

Fixes fa443bc3c1e4 ("HID: intel-ish-hid: add support for MODULE_DEVICE_TABLE()")
---
 include/linux/mod_devicetable.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
include/linux/mod_devicetable.h +1 -2
index befbf53c4b7c..c70abe7aaef2 100644
@@ -901,8 +901,7 @@ struct dfl_device_id {
 
 /**
  * struct ishtp_device_id - ISHTP device identifier
- * @guid_string: 36 char string of the form fa50ff2b-f2e8-45de-83fa-65417f2f49ba
- * @context: pointer to driver specific data
+ * @guid: GUID of the device.
  */
 struct ishtp_device_id {
 	guid_t guid;

base-commit: 7fb0413baa7f8a04caef0c504df9af7e0623d296

Signature · 1 line
2.33.1