Message ID | 20220416081534.28729-1-bagasdotme@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: zstd: add missing function name in zstd_reclaim_timer_fn() comment | expand |
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.
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.
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 *