summaryrefslogtreecommitdiff
path: root/include/linux/slab.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r--include/linux/slab.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h
index 7247e217e21b..c5df1534ebf3 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -835,6 +835,12 @@ unsigned int kmem_cache_size(struct kmem_cache *s);
*/
size_t kmalloc_size_roundup(size_t size);
+#ifdef CONFIG_MEM_ALLOC_PROFILING_DEBUG
+void verify_slab_obj_has_alloc_tag(void *ptr);
+#else
+static inline void verify_slab_obj_has_alloc_tag(void *ptr) {}
+#endif
+
void __init kmem_cache_init_late(void);
#endif /* _LINUX_SLAB_H */