On Mon, Jun 02, 2003 at 08:53:53PM +1000, herbert wrote: > This patch adds inclusions of linux/slab.h in files that used kmem_cache_t. > Although harmless in 2.5, it actually breaks compilation under 2.4 for > at least flow.c. Oops, and here is the patch. -- Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ ) Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Index: kernel-source-2.5/include/net/xfrm.h =================================================================== RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/include/net/xfrm.h,v retrieving revision 1.1.1.8 diff -u -r1.1.1.8 xfrm.h --- kernel-source-2.5/include/net/xfrm.h 27 May 2003 08:38:39 -0000 1.1.1.8 +++ kernel-source-2.5/include/net/xfrm.h 2 Jun 2003 10:51:39 -0000 @@ -9,6 +9,7 @@ #include <linux/crypto.h> #include <linux/pfkeyv2.h> #include <linux/in6.h> +#include <linux/slab.h> #include <net/sock.h> #include <net/dst.h> Index: kernel-source-2.5/net/core/flow.c =================================================================== RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/net/core/flow.c,v retrieving revision 1.2 diff -u -r1.2 flow.c --- kernel-source-2.5/net/core/flow.c 1 Jun 2003 00:08:36 -0000 1.2 +++ kernel-source-2.5/net/core/flow.c 2 Jun 2003 10:40:46 -0000 @@ -11,6 +11,7 @@ #include <linux/mm.h> #include <linux/random.h> #include <linux/init.h> +#include <linux/slab.h> #include <net/flow.h> #include <asm/atomic.h> Index: kernel-source-2.5/net/ipv4/xfrm4_input.c =================================================================== RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/net/ipv4/xfrm4_input.c,v retrieving revision 1.1.1.3 diff -u -r1.1.1.3 xfrm4_input.c --- kernel-source-2.5/net/ipv4/xfrm4_input.c 4 May 2003 23:53:02 -0000 1.1.1.3 +++ kernel-source-2.5/net/ipv4/xfrm4_input.c 2 Jun 2003 10:51:44 -0000 @@ -9,6 +9,7 @@ * */ +#include <linux/slab.h> #include <net/ip.h> #include <net/xfrm.h> Index: kernel-source-2.5/net/xfrm/xfrm_policy.c =================================================================== RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.5/net/xfrm/xfrm_policy.c,v retrieving revision 1.3 diff -u -r1.3 xfrm_policy.c --- kernel-source-2.5/net/xfrm/xfrm_policy.c 1 Jun 2003 00:10:13 -0000 1.3 +++ kernel-source-2.5/net/xfrm/xfrm_policy.c 2 Jun 2003 10:41:06 -0000 @@ -14,6 +14,7 @@ */ #include <linux/config.h> +#include <linux/slab.h> #include <net/xfrm.h> #include <net/ip.h>