mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
docs: process: discourage pointless boilerplate kdoc
It appears that folks "less versed in kernel coding" think that its good style to document every function, even if they have no useful information to pass to the future readers of the code. This used to be just a waste of space, but with increased kdoc format linting it's also a burden when refactoring the code. Signed-off-by: Jakub Kicinski <[email protected]> Reviewed-by: Joe Damato <[email protected]> Signed-off-by: Jonathan Corbet <[email protected]> Link: https://lore.kernel.org/r/[email protected]
This commit is contained in:
1 parent
0242b8b0cc
commit
e5880f95a9
1 file changed
+4
-1
@@ -614,7 +614,10 @@ it.
|
||||
|
||||
When commenting the kernel API functions, please use the kernel-doc format.
|
||||
See the files at :ref:`Documentation/doc-guide/ <doc_guide>` and
|
||||
``scripts/kernel-doc`` for details.
|
||||
``scripts/kernel-doc`` for details. Note that the danger of over-commenting
|
||||
applies to kernel-doc comments all the same. Do not add boilerplate
|
||||
kernel-doc which simply reiterates what's obvious from the signature
|
||||
of the function.
|
||||
|
||||
The preferred style for long (multi-line) comments is:
|
||||
|
||||
|
||||
Reference in new issue
Block a user