[PATCH] Remove the deprecated "kmem_cache_t" typedef from slab.h.




Given that there is no remaining usage of the deprecated kmem_cache_t
typedef anywhere in the tree, remove that typedef.

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

---

this removal will, of course, break out-of-tree usage but this typedef
has been deprecated since Dec of 2006 (commit
1b1cec4bbc59feac89670d5d6d222a02545bac94) and since this won't go in
until 2.6.22, is six months enough time for constant build warnings to
convince people to stop using deprecated features? :-)

diff --git a/include/linux/slab.h b/include/linux/slab.h
index a015236..fc13cef 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.


--
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================
-
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/



Relevant Pages

  • Re: C language standards, was: Re: books for embedded software development
    ... small ints" -- short shorts! ... make this usage more visible and, in that ... typedef, you can make the signedness explicit. ...
    (comp.arch.embedded)
  • Re: pid_t data type
    ... Sanchit writes: ... the only difference between the two would be that usage looked ... different in source code. ... Are you sure pid_t is typedef of long.. ...
    (comp.unix.programmer)
  • Re: [PATCH] Remove the deprecated "kmem_cache_t" typedef from slab.h.
    ... On Mon, 21 May 2007, Robert P. J. Day wrote: ... Given that there is no remaining usage of the deprecated kmem_cache_t ... typedef anywhere in the tree, ...
    (Linux-Kernel)
  • Re: How to understand this
    ... > A little bit confused with the usage of the last typedef. ... > how will NKSection look like in memory? ... only applies when typedefing objecttypes, not for functions or arrays), ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Priority Queue confusion
    ... they are just different implementations of a Tree. ... If the set of types you can store in the priority queue is known ... you could use an union type. ... typedef enum Type; ...
    (comp.programming)