Skip to contentSkip to conversation

Fix recently introduced kernel-doc warnings

PATCH Applied Bart Van Assche 2 participants 4 messages Jul 15, 2022 – Jul 16, 2022

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

cover Fix recently introduced kernel-doc warnings

Hi Jens,

This patch series fixes two recently introduced kernel-doc warnings. Please consider these two patches for kernel v5.20.

Thanks,

Bart.

Bart Van Assche (2):
fs/buffer: Fix the ll_rw_block() kernel-doc header
blktrace: Fix the blk_fill_rwbs() kernel-doc header

 fs/buffer.c             | 5 ++---
 kernel/trace/blktrace.c | 6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)
#1 lore raw

PATCH 1/2 fs/buffer: Fix the ll_rw_block() kernel-doc header

Bring the ll_rw_block() kernel-doc header again in sync with the function prototype.

Cc Alexander Viro <[email protected]>
Cc Jan Kara <[email protected]>
Cc Stephen Rothwell <[email protected]>
Fixes 1420c4a549bf ("fs/buffer: Combine two submit_bh() and ll_rw_block() arguments")
---
 fs/buffer.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
fs/buffer.c +2 -3
index af53569930bb..82de136b83bb 100644
@@ -3049,14 +3049,13 @@ EXPORT_SYMBOL(submit_bh);
 
 /**
  * ll_rw_block: low-level access to block devices (DEPRECATED)
- * @op: whether to %READ or %WRITE
- * @op_flags: req_flag_bits
+ * @opf: block layer request operation and flags.
  * @nr: number of &struct buffer_heads in the array
  * @bhs: array of pointers to &struct buffer_head
  *
  * ll_rw_block() takes an array of pointers to &struct buffer_heads, and
  * requests an I/O operation on them, either a %REQ_OP_READ or a %REQ_OP_WRITE.
- * @op_flags contains flags modifying the detailed I/O behavior, most notably
+ * @opf contains flags modifying the detailed I/O behavior, most notably
  * %REQ_RAHEAD.
  *
  * This function drops any buffer that it cannot get a lock on (with the
#2 lore raw

PATCH 2/2 blktrace: Fix the blk_fill_rwbs() kernel-doc header

In reply to Bart Van Assche

Reflect recent changes in the blk_fill_rwbs() kernel-doc header.

Cc Christoph Hellwig <[email protected]>
Cc Steven Rostedt <[email protected]>
Cc Li Zefan <[email protected]>
Cc Chaitanya Kulkarni <[email protected]>
Cc Stephen Rothwell <[email protected]>
Fixes 919dbca8670d ("blktrace: Use the new blk_opf_t type")
---
 kernel/trace/blktrace.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
kernel/trace/blktrace.c +3 -3
index 150058f5daa9..7f5eb295fe19 100644
@@ -1873,11 +1873,11 @@ static ssize_t sysfs_blk_trace_attr_store(struct device *dev,
 /**
  * blk_fill_rwbs - Fill the buffer rwbs by mapping op to character string.
  * @rwbs:	buffer to be filled
- * @op:		REQ_OP_XXX for the tracepoint
+ * @opf:	request operation type (REQ_OP_XXX) and flags for the tracepoint
  *
  * Description:
- *     Maps the REQ_OP_XXX to character and fills the buffer provided by the
- *     caller with resulting string.
+ *     Maps each request operation and flag to a single character and fills the
+ *     buffer provided by the caller with resulting string.
  *
  **/
 void blk_fill_rwbs(char *rwbs, blk_opf_t opf)
maintainer Applied
#3 lore raw
In reply to Bart Van Assche
Quoted 8 lines · Bart Van Assche

This patch series fixes two recently introduced kernel-doc warnings. Please consider these two patches for kernel v5.20.

Thanks,

Bart.

[...]

Applied, thanks!

[1/2] fs/buffer: Fix the ll_rw_block() kernel-doc header

      commit: f54541403b2f51d98aa65472ddb021b1ef7d1eed
[2/2] blktrace: Fix the blk_fill_rwbs() kernel-doc header
      commit: 020e3618cc81abf11fe6bffaac27861ff94707ce

Best regards,

Signature · 1 line
Jens Axboe