linux-block.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: ChenXiaoSong <chenxiaosong2@huawei.com>
To: <axboe@kernel.dk>
Cc: <linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
	<yukuai3@huawei.com>, <yi.zhang@huawei.com>,
	<chenxiaosong2@huawei.com>
Subject: [PATCH -next] partitions/aix: fix doc warnings
Date: Thu, 10 Jun 2021 15:48:45 +0800	[thread overview]
Message-ID: <20210610074845.58503-1-chenxiaosong2@huawei.com> (raw)

Fix gcc W=1 warnings:

block/partitions/aix.c:130: warning: Function parameter or member 'lba' not described in 'alloc_pvd'
block/partitions/aix.c:130: warning: Function parameter or member 'state' not described in 'alloc_pvd'
block/partitions/aix.c:155: warning: Function parameter or member 'lba' not described in 'alloc_lvn'
block/partitions/aix.c:155: warning: Function parameter or member 'state' not described in 'alloc_lvn'
block/partitions/aix.c:97: warning: Function parameter or member 'buffer' not described in 'read_lba'
block/partitions/aix.c:97: warning: Function parameter or member 'count' not described in 'read_lba'
block/partitions/aix.c:97: warning: Function parameter or member 'lba' not described in 'read_lba'
block/partitions/aix.c:97: warning: Function parameter or member 'state' not described in 'read_lba'

Signed-off-by: ChenXiaoSong <chenxiaosong2@huawei.com>
---
 block/partitions/aix.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/block/partitions/aix.c b/block/partitions/aix.c
index c7b4fd1a4a97..44397139cae0 100644
--- a/block/partitions/aix.c
+++ b/block/partitions/aix.c
@@ -84,10 +84,10 @@ static u64 last_lba(struct block_device *bdev)
 
 /**
  * read_lba(): Read bytes from disk, starting at given LBA
- * @state
- * @lba
- * @buffer
- * @count
+ * @state: Pointer to "struct parsed_partitions"
+ * @lba: Logical block address
+ * @buffer: Pointer to "u8"
+ * @count: Bytes reads from @state->bdev into @buffer
  *
  * Description:  Reads @count bytes from @state->bdev into @buffer.
  * Returns number of bytes read on success, 0 on error.
@@ -119,8 +119,8 @@ static size_t read_lba(struct parsed_partitions *state, u64 lba, u8 *buffer,
 
 /**
  * alloc_pvd(): reads physical volume descriptor
- * @state
- * @lba
+ * @state: Pointer to "struct parsed_partitions"
+ * @lba: Logical block address
  *
  * Description: Returns pvd on success,  NULL on error.
  * Allocates space for pvd and fill it with disk blocks at @lba
@@ -144,8 +144,8 @@ static struct pvd *alloc_pvd(struct parsed_partitions *state, u32 lba)
 
 /**
  * alloc_lvn(): reads logical volume names
- * @state
- * @lba
+ * @state: Pointer to "struct parsed_partitions"
+ * @lba: Logical block address
  *
  * Description: Returns lvn on success,  NULL on error.
  * Allocates space for lvn and fill it with disk blocks at @lba
-- 
2.25.4


                 reply	other threads:[~2021-06-10  7:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210610074845.58503-1-chenxiaosong2@huawei.com \
    --to=chenxiaosong2@huawei.com \
    --cc=axboe@kernel.dk \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yi.zhang@huawei.com \
    --cc=yukuai3@huawei.com \
    --subject='Re: [PATCH -next] partitions/aix: fix doc warnings' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).