linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] btrfs: block-group: fix a doc warning in block-group.c
@ 2020-09-22 12:37 Xiaofei Tan
  2020-09-23  9:45 ` David Sterba
  0 siblings, 1 reply; 3+ messages in thread
From: Xiaofei Tan @ 2020-09-22 12:37 UTC (permalink / raw)
  To: clm, josef, dsterba, linux-btrfs, linux-kernel; +Cc: linuxarm, Xiaofei Tan

Fix following warning caused by mismatch bewteen function parameters
and comments.
fs/btrfs/block-group.c:1649: warning: Function parameter or member 'fs_info' not described in 'btrfs_rmap_block'

Signed-off-by: Xiaofei Tan <tanxiaofei@huawei.com>
---
 fs/btrfs/block-group.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/btrfs/block-group.c b/fs/btrfs/block-group.c
index ea8aaf36..fea6350 100644
--- a/fs/btrfs/block-group.c
+++ b/fs/btrfs/block-group.c
@@ -1633,6 +1633,7 @@ static void set_avail_alloc_bits(struct btrfs_fs_info *fs_info, u64 flags)
 
 /**
  * btrfs_rmap_block - Map a physical disk address to a list of logical addresses
+ * @fs_info:	   the fs_info for our fs
  * @chunk_start:   logical address of block group
  * @physical:	   physical address to map to logical addresses
  * @logical:	   return array of logical addresses which map to @physical
-- 
2.8.1


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

* Re: [PATCH] btrfs: block-group: fix a doc warning in block-group.c
  2020-09-22 12:37 [PATCH] btrfs: block-group: fix a doc warning in block-group.c Xiaofei Tan
@ 2020-09-23  9:45 ` David Sterba
  2020-09-25  8:21   ` Xiaofei Tan
  0 siblings, 1 reply; 3+ messages in thread
From: David Sterba @ 2020-09-23  9:45 UTC (permalink / raw)
  To: Xiaofei Tan; +Cc: clm, josef, dsterba, linux-btrfs, linux-kernel, linuxarm

On Tue, Sep 22, 2020 at 08:37:21PM +0800, Xiaofei Tan wrote:
> Fix following warning caused by mismatch bewteen function parameters
> and comments.
> fs/btrfs/block-group.c:1649: warning: Function parameter or member 'fs_info' not described in 'btrfs_rmap_block'

IIRC there are way more formatting errors for the kernel-doc, so I'd
rather fix them in one patch. Also for static functions or internal
helpers the proper formatting is not that important as it's read by
people and the acual parameters are what matters.

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

* Re: [PATCH] btrfs: block-group: fix a doc warning in block-group.c
  2020-09-23  9:45 ` David Sterba
@ 2020-09-25  8:21   ` Xiaofei Tan
  0 siblings, 0 replies; 3+ messages in thread
From: Xiaofei Tan @ 2020-09-25  8:21 UTC (permalink / raw)
  To: dsterba, clm, josef, dsterba, linux-btrfs, linux-kernel, linuxarm

Hi David,

On 2020/9/23 17:45, David Sterba wrote:
> On Tue, Sep 22, 2020 at 08:37:21PM +0800, Xiaofei Tan wrote:
>> Fix following warning caused by mismatch bewteen function parameters
>> and comments.
>> fs/btrfs/block-group.c:1649: warning: Function parameter or member 'fs_info' not described in 'btrfs_rmap_block'
> 
> IIRC there are way more formatting errors for the kernel-doc, so I'd
> rather fix them in one patch. Also for static functions or internal
> helpers the proper formatting is not that important as it's read by
> people and the acual parameters are what matters.
> 

Sure, there are many warnings in the other files from dir fs/btrfs/.
If fix them in one patch, it could be huge :)

> .
> 

-- 
 thanks
tanxiaofei


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

end of thread, other threads:[~2020-09-25  8:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-22 12:37 [PATCH] btrfs: block-group: fix a doc warning in block-group.c Xiaofei Tan
2020-09-23  9:45 ` David Sterba
2020-09-25  8:21   ` Xiaofei Tan

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