Skip to contentSkip to conversation

Fix kernel-doc warnings dfl files

PATCH In review Basheer Ahmed Muddebihal 2 participants 6 messages May 19, 2022 – May 28, 2022

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

cover Fix kernel-doc warnings dfl files

Fixed the kernel-doc warnings in drivers/fpga/dfl.c, drivers/fpga/dfl.h and include/linux/dfl.h. Each file commit has a list of warnings fixed.

Basheer Ahmed Muddebihal (3):
fpga: dfl: Fix kernel-doc warning in dfl.h for revision
fpga: dfl: Fix kernel-doc warnings in include/linux/dfl.h
fpga: dfl: Fix kernel-doc warnings in drivers/fpga/dfl.c

 drivers/fpga/dfl.c  | 5 +++--
 drivers/fpga/dfl.h  | 1 +
 include/linux/dfl.h | 4 ++++
 3 files changed, 8 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/3 fpga: dfl: Fix kernel-doc warning in dfl.h for revision

Fixed the following warning:
drivers/fpga/dfl.h:255: warning: Function parameter or member 'revision' not described in 'dfl_feature'

---
 drivers/fpga/dfl.h | 1 +
 1 file changed, 1 insertion(+)
drivers/fpga/dfl.h +1 -0
index 06cfcd5e84bb..766429e618f6 100644
@@ -231,6 +231,7 @@ struct dfl_feature_irq_ctx {
  *
  * @dev: ptr to pdev of the feature device which has the sub feature.
  * @id: sub feature id.
+ * @revision: sub feature revision.
  * @resource_index: each sub feature has one mmio resource for its registers.
  *		    this index is used to find its mmio resource from the
  *		    feature dev (platform device)'s resources.
Signature · 1 line
2.34.1
maintainer
#2 lore raw

Re: [PATCH 1/3] fpga: dfl: Fix kernel-doc warning in dfl.h for revision

Quoted 1 line · Basheer Ahmed Muddebihal

Fixed the following warning:

Please help specify which tool reports this issue here. Is it lkp?

Quoted 2 lines

drivers/fpga/dfl.h:255: warning: Function parameter or member 'revision' not described in 'dfl_feature'

Please add the 'Fixes' tag here.
Please also add the 'Reported-by' tag here.

Quoted 19 lines
---
 drivers/fpga/dfl.h | 1 +
 1 file changed, 1 insertion(+)
drivers/fpga/dfl.h +1 -0
index 06cfcd5e84bb..766429e618f6 100644
@@ -231,6 +231,7 @@ struct dfl_feature_irq_ctx {
  *
  * @dev: ptr to pdev of the feature device which has the sub feature.
  * @id: sub feature id.
+ * @revision: sub feature revision.
  * @resource_index: each sub feature has one mmio resource for its registers.
  *		    this index is used to find its mmio resource from the
  *		    feature dev (platform device)'s resources.
Signature · 1 line
2.34.1
#3 lore raw

PATCH 2/3 fpga: dfl: Fix kernel-doc warnings in include/linux/dfl.h

In reply to Basheer Ahmed Muddebihal

Fixed the following warnings:
include/linux/dfl.h:21: warning: Enum value 'FME_ID' not described in enum 'dfl_id_type' include/linux/dfl.h:21: warning: Enum value 'PORT_ID' not described in enum 'dfl_id_type' include/linux/dfl.h:21: warning: Enum value 'DFL_ID_MAX' not described in enum 'dfl_id_type' include/linux/dfl.h:47: warning: Function parameter or member 'revision' not described in 'dfl_device'

---
 include/linux/dfl.h | 4 ++++
 1 file changed, 4 insertions(+)
include/linux/dfl.h +4 -0
index 431636a0dc78..4caa2d99d8dc 100644
@@ -13,6 +13,9 @@
 
 /**
  * enum dfl_id_type - define the DFL FIU types
+ * @FME_ID: dfl id for FPGA Management Engine node.
+ * @PORT_ID: dfl id for Port.
+ * @DFL_ID_MAX: maximum number for dfl ids.
  */
 enum dfl_id_type {
 	FME_ID = 0,
@@ -27,6 +30,7 @@ enum dfl_id_type {
  * @id: id of the dfl device.
  * @type: type of DFL FIU of the device. See enum dfl_id_type.
  * @feature_id: feature identifier local to its DFL FIU type.
+ * @revision: feature revision local to its DFL FIU type.
  * @mmio_res: mmio resource of this dfl device.
  * @irqs: list of Linux IRQ numbers of this dfl device.
  * @num_irqs: number of IRQs supported by this dfl device.
Signature · 1 line
2.34.1
maintainer
#4 lore raw

Re: [PATCH 2/3] fpga: dfl: Fix kernel-doc warnings in include/linux/dfl.h

Quoted 16 lines · Basheer Ahmed Muddebihal

Fixed the following warnings:
include/linux/dfl.h:21: warning: Enum value 'FME_ID' not described in enum 'dfl_id_type' include/linux/dfl.h:21: warning: Enum value 'PORT_ID' not described in enum 'dfl_id_type' include/linux/dfl.h:21: warning: Enum value 'DFL_ID_MAX' not described in enum 'dfl_id_type' include/linux/dfl.h:47: warning: Function parameter or member 'revision' not described in 'dfl_device'

---
 include/linux/dfl.h | 4 ++++
 1 file changed, 4 insertions(+)
include/linux/dfl.h +0 -0
index 431636a0dc78..4caa2d99d8dc 100644

include/linux/dfl.h line 16

Quoted 4 lines
include/linux/dfl.h +1 -0
@@ -13,6 +13,9 @@
 
 /**
  * enum dfl_id_type - define the DFL FIU types
+ * @FME_ID: dfl id for FPGA Management Engine node.

DFL FIU type for FPGA Management Engine. Is it better?

include/linux/dfl.h line 17

Quoted 1 line
include/linux/dfl.h +1 -0
+ * @PORT_ID: dfl id for Port.

DFL FIU type for Port.

include/linux/dfl.h line 18

Quoted 1 line
include/linux/dfl.h +1 -0
+ * @DFL_ID_MAX: maximum number for dfl ids.

number of valid DFL FIU types.

include/linux/dfl.h enum dfl_id_type { · line 33

Quoted 8 lines
include/linux/dfl.h +1 -0
  */
 enum dfl_id_type {
 	FME_ID = 0,
@@ -27,6 +30,7 @@ enum dfl_id_type {
  * @id: id of the dfl device.
  * @type: type of DFL FIU of the device. See enum dfl_id_type.
  * @feature_id: feature identifier local to its DFL FIU type.
+ * @revision: feature revision local to its DFL FIU type.

Local to its DFL FIU type? Every feature manages it's own revesion, is it?

Thanks,
Yilun

Quoted 5 lines
include/linux/dfl.h +0 -0
  * @mmio_res: mmio resource of this dfl device.
  * @irqs: list of Linux IRQ numbers of this dfl device.
  * @num_irqs: number of IRQs supported by this dfl device.
Signature · 1 line
2.34.1
#5 lore raw

PATCH 3/3 fpga: dfl: Fix kernel-doc warnings in drivers/fpga/dfl.c

In reply to Basheer Ahmed Muddebihal

Fixed the following warnings:
drivers/fpga/dfl.c:54: warning: cannot understand function prototype: 'struct dfl_dev_info ' drivers/fpga/dfl.c:74: warning: cannot understand function prototype: 'struct dfl_chardev_info ' drivers/fpga/dfl.c:725: warning: Function parameter or member 'revision' not described in 'dfl_feature_info'

---
 drivers/fpga/dfl.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/fpga/dfl.c +3 -2
index 6bff39ff21a0..4086cabd25b0 100644
@@ -45,7 +45,7 @@ static const char *dfl_pdata_key_strings[DFL_ID_MAX] = {
 };
 
 /**
- * dfl_dev_info - dfl feature device information.
+ * struct dfl_dev_info - dfl feature device information.
  * @name: name string of the feature platform device.
  * @dfh_id: id value in Device Feature Header (DFH) register by DFL spec.
  * @id: idr id of the feature dev.
@@ -67,7 +67,7 @@ static struct dfl_dev_info dfl_devs[] = {
 };
 
 /**
- * dfl_chardev_info - chardev information of dfl feature device
+ * struct dfl_chardev_info - chardev information of dfl feature device
  * @name: nmae string of the char device.
  * @devt: devt of the char device.
  */
@@ -708,6 +708,7 @@ struct build_feature_devs_info {
  * struct dfl_feature_info - sub feature info collected during feature dev build
  *
  * @fid: id of this sub feature.
+ * @revision: revision of this sub feature.
  * @mmio_res: mmio resource of this sub feature.
  * @ioaddr: mapped base address of mmio resource.
  * @node: node in sub_features linked list.
Signature · 1 line
2.34.1