diff options
author | Andrew Morton <akpm@osdl.org> | 2006-12-06 23:33:22 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:25 -0500 |
commit | 1b1cec4bbc59feac89670d5d6d222a02545bac94 (patch) | |
tree | 5480d4f5e3bf9700d355adc02a90c9395fbcbd46 /include/linux/slab.h | |
parent | e18b890bb0881bbab6f4f1a6cd20d9c60d66b003 (diff) |
[PATCH] slab: deprecate kmem_cache_t
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/slab.h')
-rw-r--r-- | include/linux/slab.h | 17 |
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> |
13 | typedef 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> | 20 | typedef 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 |