diff options
author | Randy Dunlap <rdunlap@infradead.org> | 2019-10-14 17:12:26 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-14 18:04:01 -0400 |
commit | 87bf4f71af4fb162033fbd98b4252ec11a715dbe (patch) | |
tree | 07a838300ecf65b5ffdcd936e5904e58e3aef3d8 | |
parent | 13bea898cd9153be91baa92de68ec32ff0b99362 (diff) |
mm/slab.c: fix kernel-doc warning for __ksize()
Fix kernel-doc warning in mm/slab.c:
mm/slab.c:4215: warning: Function parameter or member 'objp' not described in '__ksize'
Also add Return: documentation section for this function.
Link: http://lkml.kernel.org/r/68c9fd7d-f09e-d376-e292-c7b2bdf1774d@infradead.org
Fixes: 10d1f8cb3965 ("mm/slab: refactor common ksize KASAN logic into slab_common.c")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Marco Elver <elver@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/slab.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -4206,9 +4206,12 @@ void __check_heap_object(const void *ptr, unsigned long n, struct page *page, | |||
4206 | 4206 | ||
4207 | /** | 4207 | /** |
4208 | * __ksize -- Uninstrumented ksize. | 4208 | * __ksize -- Uninstrumented ksize. |
4209 | * @objp: pointer to the object | ||
4209 | * | 4210 | * |
4210 | * Unlike ksize(), __ksize() is uninstrumented, and does not provide the same | 4211 | * Unlike ksize(), __ksize() is uninstrumented, and does not provide the same |
4211 | * safety checks as ksize() with KASAN instrumentation enabled. | 4212 | * safety checks as ksize() with KASAN instrumentation enabled. |
4213 | * | ||
4214 | * Return: size of the actual memory used by @objp in bytes | ||
4212 | */ | 4215 | */ |
4213 | size_t __ksize(const void *objp) | 4216 | size_t __ksize(const void *objp) |
4214 | { | 4217 | { |