Subject: [PATCH -next] kmemcheck: build failure after merge of the slabh tree

From: Randy Dunlap <[email-masked]>
Date: Mon, 29 Mar 2010 09:25:13 -0700

On Mon, 29 Mar 2010 15:42:08 +1100 Stephen Rothwell wrote:

> Hi Tejun,
> 
> After merging the slabh tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:

This tree seems to be a bit messy.  :(

Sorry if I missed this patch in the (email) storm.

mm/kmemcheck.c also needs slab.h added to it:

---
From: Randy Dunlap <[email-masked]>

Fix build errors due to missing slab.h:

mm/kmemcheck.c:69: error: dereferencing pointer to incomplete type
mm/kmemcheck.c:69: error: 'SLAB_NOTRACK' undeclared (first use in this function)
mm/kmemcheck.c:82: error: dereferencing pointer to incomplete type
mm/kmemcheck.c:94: error: dereferencing pointer to incomplete type
mm/kmemcheck.c:94: error: dereferencing pointer to incomplete type
mm/kmemcheck.c:94: error: 'SLAB_DESTROY_BY_RCU' undeclared (first use in this function)

Signed-off-by: Randy Dunlap <[email-masked]>
---
 mm/kmemcheck.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-next-20100329.orig/mm/kmemcheck.c
+++ linux-next-20100329/mm/kmemcheck.c
@@ -1,6 +1,7 @@
 #include <linux/gfp.h>
 #include <linux/mm_types.h>
 #include <linux/mm.h>
+#include <linux/slab.h>
 #include <linux/kmemcheck.h>
 
 void kmemcheck_alloc_shadow(struct page *page, int order, gfp_t flags, int node)