linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] bio.h: fix kernel-doc warnings
@ 2021-12-22 21:15 Randy Dunlap
  2021-12-22 23:57 ` Jens Axboe
  0 siblings, 1 reply; 2+ messages in thread
From: Randy Dunlap @ 2021-12-22 21:15 UTC (permalink / raw)
  To: linux-kernel; +Cc: Randy Dunlap, Kent Overstreet, Jens Axboe, linux-block

Fix all kernel-doc warnings in <linux/bio.h>:

include/linux/bio.h:136: warning: Function parameter or member 'nbytes' not described in 'bio_advance'
include/linux/bio.h:136: warning: Excess function parameter 'bytes' description in 'bio_advance'
include/linux/bio.h:391: warning: No description found for return value of 'bio_next_split'

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Kent Overstreet <kent.overstreet@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: linux-block@vger.kernel.org
---
 include/linux/bio.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- linux-next-20211222.orig/include/linux/bio.h
+++ linux-next-20211222/include/linux/bio.h
@@ -124,7 +124,7 @@ void __bio_advance(struct bio *, unsigne
 /**
  * bio_advance - increment/complete a bio by some number of bytes
  * @bio:	bio to advance
- * @bytes:	number of bytes to complete
+ * @nbytes:	number of bytes to complete
  *
  * This updates bi_sector, bi_size and bi_idx; if the number of bytes to
  * complete doesn't align with a bvec boundary, then bv_len and bv_offset will
@@ -383,7 +383,7 @@ extern struct bio *bio_split(struct bio
  * @gfp:	gfp mask
  * @bs:		bio set to allocate from
  *
- * Returns a bio representing the next @sectors of @bio - if the bio is smaller
+ * Return: a bio representing the next @sectors of @bio - if the bio is smaller
  * than @sectors, returns the original bio unchanged.
  */
 static inline struct bio *bio_next_split(struct bio *bio, int sectors,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] bio.h: fix kernel-doc warnings
  2021-12-22 21:15 [PATCH -next] bio.h: fix kernel-doc warnings Randy Dunlap
@ 2021-12-22 23:57 ` Jens Axboe
  0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2021-12-22 23:57 UTC (permalink / raw)
  To: Randy Dunlap, linux-kernel; +Cc: linux-block, Kent Overstreet

On Wed, 22 Dec 2021 13:15:32 -0800, Randy Dunlap wrote:
> Fix all kernel-doc warnings in <linux/bio.h>:
> 
> include/linux/bio.h:136: warning: Function parameter or member 'nbytes' not described in 'bio_advance'
> include/linux/bio.h:136: warning: Excess function parameter 'bytes' description in 'bio_advance'
> include/linux/bio.h:391: warning: No description found for return value of 'bio_next_split'
> 
> 
> [...]

Applied, thanks!

[1/1] bio.h: fix kernel-doc warnings
      commit: 6fd3c510ee4b37f2f9fe3d3cafbfa459e15c5e11

Best regards,
-- 
Jens Axboe



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-22 23:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-22 21:15 [PATCH -next] bio.h: fix kernel-doc warnings Randy Dunlap
2021-12-22 23:57 ` Jens Axboe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).