diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/slab_def.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h index 36d7031a1a53..604ebc832a9a 100644 --- a/include/linux/slab_def.h +++ b/include/linux/slab_def.h | |||
@@ -113,17 +113,12 @@ void *__kmalloc(size_t size, gfp_t flags); | |||
113 | #ifdef CONFIG_TRACING | 113 | #ifdef CONFIG_TRACING |
114 | extern void *kmem_cache_alloc_trace(size_t size, | 114 | extern void *kmem_cache_alloc_trace(size_t size, |
115 | struct kmem_cache *cachep, gfp_t flags); | 115 | struct kmem_cache *cachep, gfp_t flags); |
116 | extern size_t slab_buffer_size(struct kmem_cache *cachep); | ||
117 | #else | 116 | #else |
118 | static __always_inline void * | 117 | static __always_inline void * |
119 | kmem_cache_alloc_trace(size_t size, struct kmem_cache *cachep, gfp_t flags) | 118 | kmem_cache_alloc_trace(size_t size, struct kmem_cache *cachep, gfp_t flags) |
120 | { | 119 | { |
121 | return kmem_cache_alloc(cachep, flags); | 120 | return kmem_cache_alloc(cachep, flags); |
122 | } | 121 | } |
123 | static inline size_t slab_buffer_size(struct kmem_cache *cachep) | ||
124 | { | ||
125 | return 0; | ||
126 | } | ||
127 | #endif | 122 | #endif |
128 | 123 | ||
129 | static __always_inline void *kmalloc(size_t size, gfp_t flags) | 124 | static __always_inline void *kmalloc(size_t size, gfp_t flags) |