Skip to contentSkip to conversation

nvdimm/btt: Fix btt_init() kernel-doc comment

PATCH In review Yang Li 2 participants 2 messages Dec 30, 2021

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 nvdimm/btt: Fix btt_init() kernel-doc comment

Add the description of @nd_region and remove @maxlane in btt_init() kernel-doc comment to remove warnings found
by running scripts/kernel-doc, which is caused by using 'make W=1'. drivers/nvdimm/btt.c:1584: warning: Function parameter or member 'nd_region' not described in 'btt_init' drivers/nvdimm/btt.c:1584: warning: Excess function parameter 'maxlane' description in 'btt_init'

---
 drivers/nvdimm/btt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvdimm/btt.c +1 -1
index da3f007a1211..293b8c107817 100644
@@ -1567,7 +1567,7 @@ static void btt_blk_cleanup(struct btt *btt)
  * @rawsize:	raw size in bytes of the backing device
  * @lbasize:	lba size of the backing device
  * @uuid:	A uuid for the backing device - this is stored on media
- * @maxlane:	maximum number of parallel requests the device can handle
+ * @nd_region:  region id and number of lanes possible
  *
  * Initialize a Block Translation Table on a backing device to provide
  * single sector power fail atomicity.
Signature · 1 line
2.20.1.7.g153144c
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Yang Li

Add the description of @nd_region and remove @maxlane in btt_init() kernel-doc comment to remove warnings found
by running scripts/kernel-doc, which is caused by using 'make W=1'. drivers/nvdimm/btt.c:1584: warning: Function parameter or member 'nd_region' not described in 'btt_init' drivers/nvdimm/btt.c:1584: warning: Excess function parameter 'maxlane' description in 'btt_init'

Quoted 20 lines
---
 drivers/nvdimm/btt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/nvdimm/btt.c +1 -1
index da3f007a1211..293b8c107817 100644
@@ -1567,7 +1567,7 @@ static void btt_blk_cleanup(struct btt *btt)
  * @rawsize:	raw size in bytes of the backing device
  * @lbasize:	lba size of the backing device
  * @uuid:	A uuid for the backing device - this is stored on media
- * @maxlane:	maximum number of parallel requests the device can handle
+ * @nd_region:  region id and number of lanes possible
  *
  * Initialize a Block Translation Table on a backing device to provide
  * single sector power fail atomicity.
Signature · 1 line
2.20.1.7.g153144c