aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/slab.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/include/linux/slab.h b/include/linux/slab.h
index fbcfc208f52b..2271886744f8 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -7,16 +7,17 @@
7#ifndef _LINUX_SLAB_H 7#ifndef _LINUX_SLAB_H
8#define _LINUX_SLAB_H 8#define _LINUX_SLAB_H
9 9
10#if defined(__KERNEL__) 10#ifdef __KERNEL__
11 11
12/* kmem_cache_t exists for legacy reasons and is not used by code in mm */ 12#include <linux/gfp.h>
13typedef struct kmem_cache kmem_cache_t; 13#include <linux/init.h>
14#include <linux/types.h>
15#include <asm/page.h> /* kmalloc_sizes.h needs PAGE_SIZE */
16#include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */
17#include <linux/compiler.h>
14 18
15#include <linux/gfp.h> 19/* kmem_cache_t exists for legacy reasons and is not used by code in mm */
16#include <linux/init.h> 20typedef struct kmem_cache kmem_cache_t __deprecated;
17#include <linux/types.h>
18#include <asm/page.h> /* kmalloc_sizes.h needs PAGE_SIZE */
19#include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */
20 21
21/* flags to pass to kmem_cache_create(). 22/* flags to pass to kmem_cache_create().
22 * The first 3 are only valid when the allocator as been build 23 * The first 3 are only valid when the allocator as been build