summaryrefslogtreecommitdiffstats
path: root/mm/slab.h
diff options
context:
space:
mode:
authorHyeonggon Yoo <42.hyeyoo@gmail.com>2022-08-17 19:18:21 +0900
committerVlastimil Babka <vbabka@suse.cz>2022-09-01 10:38:06 +0200
commitb14051352465a24b3c9ceaccac4e39b3521bb370 (patch)
treef16fbee4c11cf6df63f7acbff10971814bece277 /mm/slab.h
parented4cd17eb26d7f0c6a762608a3f30870929fbcdd (diff)
downloadlinux-stable-b14051352465a24b3c9ceaccac4e39b3521bb370.tar.gz
linux-stable-b14051352465a24b3c9ceaccac4e39b3521bb370.tar.bz2
linux-stable-b14051352465a24b3c9ceaccac4e39b3521bb370.zip
mm/sl[au]b: generalize kmalloc subsystem
Now everything in kmalloc subsystem can be generalized. Let's do it! Generalize __do_kmalloc_node(), __kmalloc_node_track_caller(), kfree(), __ksize(), __kmalloc(), __kmalloc_node() and move them to slab_common.c. In the meantime, rename kmalloc_large_node_notrace() to __kmalloc_large_node() and make it static as it's now only called in slab_common.c. [ feng.tang@intel.com: adjust kfence skip list to include __kmem_cache_free so that kfence kunit tests do not fail ] 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, 0 insertions, 2 deletions
diff --git a/mm/slab.h b/mm/slab.h
index 8eefeed95407..4d8330d57573 100644
--- a/mm/slab.h
+++ b/mm/slab.h
@@ -280,8 +280,6 @@ void *__kmem_cache_alloc_node(struct kmem_cache *s, gfp_t gfpflags,
void __kmem_cache_free(struct kmem_cache *s, void *x, unsigned long caller);
#endif
-void *kmalloc_large_node_notrace(size_t size, gfp_t flags, int node);
-
gfp_t kmalloc_fix_flags(gfp_t flags);
/* Functions provided by the slab allocators */