aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/slub_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/slub_def.h')
-rw-r--r--include/linux/slub_def.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
index bae11111458f..07f7e4cbcee3 100644
--- a/include/linux/slub_def.h
+++ b/include/linux/slub_def.h
@@ -179,19 +179,6 @@ static inline void *kmalloc(size_t size, gfp_t flags)
179 return __kmalloc(size, flags); 179 return __kmalloc(size, flags);
180} 180}
181 181
182static inline void *kzalloc(size_t size, gfp_t flags)
183{
184 if (__builtin_constant_p(size) && !(flags & SLUB_DMA)) {
185 struct kmem_cache *s = kmalloc_slab(size);
186
187 if (!s)
188 return ZERO_SIZE_PTR;
189
190 return kmem_cache_zalloc(s, flags);
191 } else
192 return __kzalloc(size, flags);
193}
194
195#ifdef CONFIG_NUMA 182#ifdef CONFIG_NUMA
196void *__kmalloc_node(size_t size, gfp_t flags, int node); 183void *__kmalloc_node(size_t size, gfp_t flags, int node);
197void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node); 184void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);