Skip to content

Commit

Permalink
[PATCH] slab: deprecate kmem_cache_t
Browse files Browse the repository at this point in the history
Cc: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Dec 7, 2006
1 parent e18b890 commit 1b1cec4
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions include/linux/slab.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
#ifndef _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/init.h>
#include <linux/types.h>
#include <asm/page.h> /* kmalloc_sizes.h needs PAGE_SIZE */
#include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */
#include <linux/compiler.h>

#include <linux/gfp.h>
#include <linux/init.h>
#include <linux/types.h>
#include <asm/page.h> /* kmalloc_sizes.h needs PAGE_SIZE */
#include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */
/* 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().
* The first 3 are only valid when the allocator as been build
Expand Down

0 comments on commit 1b1cec4

Please sign in to comment.