diff options
author | Vlastimil Babka <[email protected]> | 2022-11-07 17:11:27 +0100 |
---|---|---|
committer | Vlastimil Babka <[email protected]> | 2022-11-07 17:11:27 +0100 |
commit | c18c20f16219516b12a4f2fd29c25e06be97e064 (patch) | |
tree | 24a0d0cf71ab01b397e5b7efde11e593f220dcb7 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c | |
parent | 328687151b2a29fe93db4736bfb90da134e52fbf (diff) |
mm, slab: remove duplicate kernel-doc comment for ksize()
Akira reports:
> "make htmldocs" reports duplicate C declaration of ksize() as follows:
> /linux/Documentation/core-api/mm-api:43: ./mm/slab_common.c:1428: WARNING: Duplicate C declaration, also defined at core-api/mm-api:212.
> Declaration is '.. c:function:: size_t ksize (const void *objp)'.
> This is due to the kernel-doc comment for ksize() declaration added in
> include/linux/slab.h by commit 05a940656e1e ("slab: Introduce
> kmalloc_size_roundup()").
There is an older kernel-doc comment for ksize() definition in
mm/slab_common.c, which is not only duplicated, but also contradicts the
new one - the additional storage discovered by ksize() should not be
used by callers anymore. Delete the old kernel-doc.
Reported-by: Akira Yokosawa <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 05a940656e1e ("slab: Introduce kmalloc_size_roundup()")
Cc: Kees Cook <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions