Skip to content
Browse files

kmemcheck: 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 <randy.dunlap@oracle.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
  • Loading branch information...
1 parent 5a0e3ad commit ea5a9f0c3447889abceb7482c391bb977472eab9 Randy Dunlap committed with htejun Mar 30, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 mm/kmemcheck.c
View
1 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)

0 comments on commit ea5a9f0

Please sign in to comment.
Something went wrong with that request. Please try again.