]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
kmemcheck: Fix build errors due to missing slab.h
authorRandy Dunlap <randy.dunlap@oracle.com>
Mon, 29 Mar 2010 18:01:14 +0000 (03:01 +0900)
committerTejun Heo <tj@kernel.org>
Tue, 30 Mar 2010 13:02:32 +0000 (22:02 +0900)
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 <randy.dunlap@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
mm/kmemcheck.c

index 8f8e48acf7d9630a397ec5befd09ce955781d569..fd814fd61319adcc4763efa749005fc67ede8593 100644 (file)
@@ -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)