Skip to content

Commit 54efe13

Browse files
Jonathan Corbetgregkh
authored andcommitted
slub: Fix a documentation build error for krealloc()
[ Upstream commit e8a45f1 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 7641149 commit 54efe13

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
@@ -4930,12 +4930,12 @@ __do_krealloc(const void *p, size_t new_size, gfp_t flags)
49304930
* When slub_debug_orig_size() is off, krealloc() only knows about the bucket
49314931
* size of an allocation (but not the exact size it was allocated with) and
49324932
* hence implements the following semantics for shrinking and growing buffers
4933-
* with __GFP_ZERO.
4933+
* with __GFP_ZERO::
49344934
*
4935-
* new bucket
4936-
* 0 size size
4937-
* |--------|----------------|
4938-
* | keep | zero |
4935+
* new bucket
4936+
* 0 size size
4937+
* |--------|----------------|
4938+
* | keep | zero |
49394939
*
49404940
* Otherwise, the original allocation size 'orig_size' could be used to
49414941
* precisely clear the requested size, and the new size will also be stored

0 commit comments

Comments
 (0)