aboutsummaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorGravatar Hyeonggon Yoo <42.hyeyoo@gmail.com> 2022-08-17 19:18:25 +0900
committerGravatar Vlastimil Babka <vbabka@suse.cz> 2022-09-01 11:44:39 +0200
commit8dfa9d554061873f96335730fb1d403698b2b1b4 (patch)
tree612a468f0c3722d51b209151bc99dc2d92e02ba7 /mm/slab.h
parentmm/slab_common: drop kmem_alloc & avoid dereferencing fields when not using (diff)
downloadlinux-8dfa9d554061873f96335730fb1d403698b2b1b4.tar.gz
linux-8dfa9d554061873f96335730fb1d403698b2b1b4.tar.bz2
linux-8dfa9d554061873f96335730fb1d403698b2b1b4.zip
mm/slab_common: move declaration of __ksize() to mm/slab.h
__ksize() is only called by KASAN. Remove export symbol and move declaration to mm/slab.h as we don't want to grow its callers. Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> Reviewed-by: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'mm/slab.h')
-rw-r--r--mm/slab.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/slab.h b/mm/slab.h
index 4d8330d57573..65023f000d42 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -668,6 +668,8 @@ void free_large_kmalloc(struct folio *folio, void *object);
#endif /* CONFIG_SLOB */
+size_t __ksize(const void *objp);
+
static inline size_t slab_ksize(const struct kmem_cache *s)
{
#ifndef CONFIG_SLUB