jbd2: fix sphinx kerel-doc build warnings
PATCH v2 1/1 jbd2: fix sphinx kerel-doc build warnings
Sphinx emits various (26) warnings when building make target 'htmldocs'. Currently struct definitions contain duplicate documentation, some as kernel-docs and some as standard c89 comments. We can reduce duplication while cleaning up the kernel docs.
Move all kernel-docs to right above each struct member. Use the set of all existing comments (kernel-doc and c89). Add documentation for missing struct members and function arguments.
---
Please review carefully the newly added doc strings (first three changes in patch). I'm not familiar with this code.
This clears all sphinx build warnings for jbd2.
thanks,
Tobin.
fs/jbd2/transaction.c | 3 + include/linux/jbd2.h | 431 +++++++++++++++++++++++++++++++------------------- 2 files changed, 271 insertions(+), 163 deletions(-)
fs/jbd2/transaction.c +3 -0
@@ -497,6 +497,8 @@ EXPORT_SYMBOL(jbd2_journal_free_reserved);/** * int jbd2_journal_start_reserved(handle_t *handle) - start reserved handle * @handle: handle to start +* @type: for handle statistics +* @line_no: for handle statistics * * Start handle that has been previously reserved with jbd2_journal_reserve(). * This attaches @handle to the running transaction (or creates one if there's
@@ -626,6 +628,7 @@ int jbd2_journal_extend(handle_t *handle, int nblocks)* int jbd2_journal_restart() - restart a handle . * @handle: handle to restart * @nblocks: nr credits requested +* @gfp_mask: passed to start_this_handle() * * Restart a handle for a multi-transaction filesystem * operation.
include/linux/jbd2.h +268 -163
651 lines not on this page · raw message
Signature · 1 line
2.7.4
Quoted 10 lines · Tobin C. Harding
Sphinx emits various (26) warnings when building make target 'htmldocs'. Currently struct definitions contain duplicate documentation, some as kernel-docs and some as standard c89 comments. We can reduce duplication while cleaning up the kernel docs.
Move all kernel-docs to right above each struct member. Use the set of all existing comments (kernel-doc and c89). Add documentation for missing struct members and function arguments.
Signed-off-by Tobin C. Harding <[email protected]>
Thanks, applied. I did fix up a few of your newly added doc strings.
- Ted
Quoted 10 lines · Theodore Ts'o
Quoted 9 lines · Tobin C. Harding
Sphinx emits various (26) warnings when building make target 'htmldocs'. Currently struct definitions contain duplicate documentation, some as kernel-docs and some as standard c89 comments. We can reduce duplication while cleaning up the kernel docs.
Move all kernel-docs to right above each struct member. Use the set of all existing comments (kernel-doc and c89). Add documentation for missing struct members and function arguments.
Quoted 5 lines
Quoted 1 line
Signed-off-by Tobin C. Harding <[email protected]>Thanks, applied. I did fix up a few of your newly added doc strings.
- Ted
Oh cool, thanks.
Tobin