* [PATCH] btrfs: zstd: add missing function name in zstd_reclaim_timer_fn() comment
@ 2022-04-16 8:15 Bagas Sanjaya
2022-04-17 3:16 ` Matthew Wilcox
0 siblings, 1 reply; 3+ messages in thread
From: Bagas Sanjaya @ 2022-04-16 8:15 UTC (permalink / raw)
To: linux-doc
Cc: Bagas Sanjaya, kernel test robot, Chris Mason, Josef Bacik,
David Sterba, Nick Terrell, Schspa Shi, linux-btrfs, linux-kernel
kernel test robot reports kernel-doc warning:
>> fs/btrfs/zstd.c:98: warning: This comment starts with '/**', but
isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
The warning is caused by missing function name (in this case
zstd_reclaim_timer_fn) in the comment.
Add the function name.
Link: https://lore.kernel.org/linux-doc/202204151934.CkKcnvuJ-lkp@intel.com/
Fixes: b672526e2ee935 (btrfs: use non-bh spin_lock in zstd timer callback)
Reported-by: kernel test robot <lkp@intel.com>
Cc: Chris Mason <clm@fb.com>
Cc: Josef Bacik <josef@toxicpanda.com>
Cc: David Sterba <dsterba@suse.com>
Cc: Nick Terrell <terrelln@fb.com>
Cc: Schspa Shi <schspa@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
This patch is applied on top of btrfs-devel/misc-next [1] tree.
[1]: https://github.com/kdave/btrfs-devel.git
fs/btrfs/zstd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/btrfs/zstd.c b/fs/btrfs/zstd.c
index 0fe31a6f6e68f0..b2740358e94819 100644
--- a/fs/btrfs/zstd.c
+++ b/fs/btrfs/zstd.c
@@ -95,7 +95,7 @@ void zstd_free_workspace(struct list_head *ws);
struct list_head *zstd_alloc_workspace(unsigned int level);
/**
- * Timer callback to free unused workspaces.
+ * zstd_reclaim_timer_fn() - Timer callback to free unused workspaces.
*
* @t: timer
*
base-commit: 550a34e972578538fd0826916ae4fc407b62bb68
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: zstd: add missing function name in zstd_reclaim_timer_fn() comment
2022-04-16 8:15 [PATCH] btrfs: zstd: add missing function name in zstd_reclaim_timer_fn() comment Bagas Sanjaya
@ 2022-04-17 3:16 ` Matthew Wilcox
2022-04-17 5:14 ` Bagas Sanjaya
0 siblings, 1 reply; 3+ messages in thread
From: Matthew Wilcox @ 2022-04-17 3:16 UTC (permalink / raw)
To: Bagas Sanjaya
Cc: linux-doc, kernel test robot, Chris Mason, Josef Bacik,
David Sterba, Nick Terrell, Schspa Shi, linux-btrfs, linux-kernel
On Sat, Apr 16, 2022 at 03:15:34PM +0700, Bagas Sanjaya wrote:
> kernel test robot reports kernel-doc warning:
>
> >> fs/btrfs/zstd.c:98: warning: This comment starts with '/**', but
> isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
This is the wrong fix. Static functions should not have kernel-doc
comments. Just delete the second '*' at the head of the comment.
Also, btrfs developers should be testing with W=1. That will catch
these problems before the code is integrated.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] btrfs: zstd: add missing function name in zstd_reclaim_timer_fn() comment
2022-04-17 3:16 ` Matthew Wilcox
@ 2022-04-17 5:14 ` Bagas Sanjaya
0 siblings, 0 replies; 3+ messages in thread
From: Bagas Sanjaya @ 2022-04-17 5:14 UTC (permalink / raw)
To: Matthew Wilcox
Cc: linux-doc, kernel test robot, Chris Mason, Josef Bacik,
David Sterba, Nick Terrell, Schspa Shi, linux-btrfs, linux-kernel
On 4/17/22 10:16, Matthew Wilcox wrote:
> On Sat, Apr 16, 2022 at 03:15:34PM +0700, Bagas Sanjaya wrote:
>> kernel test robot reports kernel-doc warning:
>>
>>>> fs/btrfs/zstd.c:98: warning: This comment starts with '/**', but
>> isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
>
> This is the wrong fix. Static functions should not have kernel-doc
> comments. Just delete the second '*' at the head of the comment.
>
> Also, btrfs developers should be testing with W=1. That will catch
> these problems before the code is integrated.
Oops, thanks for reminding me.
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-04-17 5:15 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-16 8:15 [PATCH] btrfs: zstd: add missing function name in zstd_reclaim_timer_fn() comment Bagas Sanjaya
2022-04-17 3:16 ` Matthew Wilcox
2022-04-17 5:14 ` Bagas Sanjaya
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox