Commit 1b1cec4b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] slab: deprecate kmem_cache_t

Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e18b890b
...@@ -7,16 +7,17 @@ ...@@ -7,16 +7,17 @@
#ifndef _LINUX_SLAB_H #ifndef _LINUX_SLAB_H
#define _LINUX_SLAB_H #define _LINUX_SLAB_H
#if defined(__KERNEL__) #ifdef __KERNEL__
/* kmem_cache_t exists for legacy reasons and is not used by code in mm */
typedef struct kmem_cache kmem_cache_t;
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/types.h> #include <linux/types.h>
#include <asm/page.h> /* kmalloc_sizes.h needs PAGE_SIZE */ #include <asm/page.h> /* kmalloc_sizes.h needs PAGE_SIZE */
#include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */ #include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */
#include <linux/compiler.h>
/* kmem_cache_t exists for legacy reasons and is not used by code in mm */
typedef struct kmem_cache kmem_cache_t __deprecated;
/* flags to pass to kmem_cache_create(). /* flags to pass to kmem_cache_create().
* The first 3 are only valid when the allocator as been build * The first 3 are only valid when the allocator as been build
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment