[PATCH] mm: Remove final traces of deprecated kmem_cache_t.

From: Robert P. J. Day
Date: Tue Dec 19 2006 - 13:14:34 EST



Remove the last use of kmem_cache_t and the deprecated typedef.

Signed-off-by: Robert P. J. Day <rpjday@xxxxxxxxxxxxxx>

---

without looking too deeply into it, it looks like the last
references to kmem_cache_t can be removed, although there are still
going to be online web pages that refer to it, like

http://old.kernelnewbies.org/documents/kdoc/kernel-api/r2382.html


fs/dlm/lowcomms-tcp.c | 2 +-
include/linux/slab.h | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)


diff --git a/fs/dlm/lowcomms-tcp.c b/fs/dlm/lowcomms-tcp.c
index 8f2791f..9be3a44 100644
--- a/fs/dlm/lowcomms-tcp.c
+++ b/fs/dlm/lowcomms-tcp.c
@@ -143,7 +143,7 @@ static DECLARE_WAIT_QUEUE_HEAD(lowcomms_recv_waitq);
/* An array of pointers to connections, indexed by NODEID */
static struct connection **connections;
static DECLARE_MUTEX(connections_lock);
-static kmem_cache_t *con_cache;
+static struct kmem_cache *con_cache;
static int conn_array_size;

/* List of sockets that have reads pending */
diff --git a/include/linux/slab.h b/include/linux/slab.h
index 1ef822e..b115541 100644
--- a/include/linux/slab.h
+++ b/include/linux/slab.h
@@ -14,8 +14,6 @@
#include <linux/gfp.h>
#include <linux/types.h>

-typedef struct kmem_cache kmem_cache_t __deprecated;
-
/*
* Flags to pass to kmem_cache_create().
* The ones marked DEBUG are only valid if CONFIG_SLAB_DEBUG is set.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/