Re: [PATCH 2/5] mm/sl[auo]b: Do not export __ksize()

From: Matthew Wilcox
Date: Mon Feb 21 2022 - 10:46:40 EST


On Mon, Feb 21, 2022 at 10:53:33AM +0000, Hyeonggon Yoo wrote:
> Do not export __ksize(). Only kasan calls __ksize() directly.

We should probably delete (most of) the kernel-doc comment on __ksize,
leaving only the note that it's uninstrumented and only called by
kasan. Also, we should probably move the declaration of __ksize from
include/linux/slab.h to mm/slab.h since we don't want to grow new callers.