Skip to content

Commit e8a45f1

Browse files
Jonathan Corbettehcaster
authored andcommitted
slub: Fix a documentation build error for krealloc()
The kerneldoc comment for krealloc() contains an unmarked literal block, leading to these warnings in the docs build: ./mm/slub.c:4936: WARNING: Block quote ends without a blank line; unexpected unindent. [docutils] ./mm/slub.c:4936: ERROR: Undefined substitution referenced: "--------". [docutils] Mark up and indent the block properly to bring a bit of peace to our build logs. Fixes: 489a744 (mm: krealloc: clarify valid usage of __GFP_ZERO) Signed-off-by: Jonathan Corbet <[email protected]> Signed-off-by: Matthew Wilcox (Oracle) <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Vlastimil Babka <[email protected]>
1 parent 3df2991 commit e8a45f1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

mm/slub.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4966,12 +4966,12 @@ __do_krealloc(const void *p, size_t new_size, gfp_t flags)
49664966
* When slub_debug_orig_size() is off, krealloc() only knows about the bucket
49674967
* size of an allocation (but not the exact size it was allocated with) and
49684968
* hence implements the following semantics for shrinking and growing buffers
4969-
* with __GFP_ZERO.
4969+
* with __GFP_ZERO::
49704970
*
4971-
* new bucket
4972-
* 0 size size
4973-
* |--------|----------------|
4974-
* | keep | zero |
4971+
* new bucket
4972+
* 0 size size
4973+
* |--------|----------------|
4974+
* | keep | zero |
49754975
*
49764976
* Otherwise, the original allocation size 'orig_size' could be used to
49774977
* precisely clear the requested size, and the new size will also be stored

0 commit comments

Comments
 (0)