kmemcheck: Fix build errors due to missing slab.h

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Monday, April 5, 2010 - 12:59 pm

Gitweb:     http://git.kernel.org/linus/ea5a9f0c3447889abceb7482c391bb977472eab9
Commit:     ea5a9f0c3447889abceb7482c391bb977472eab9
Parent:     5a0e3ad6af8660be21ca98a971cd00f331318c05
Author:     Randy Dunlap <randy.dunlap@oracle.com>
AuthorDate: Tue Mar 30 03:01:14 2010 +0900
Committer:  Tejun Heo <tj@kernel.org>
CommitDate: Tue Mar 30 22:02:32 2010 +0900

    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>
---
 mm/kmemcheck.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/mm/kmemcheck.c b/mm/kmemcheck.c
index 8f8e48a..fd814fd 100644
--- a/mm/kmemcheck.c
+++ b/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)
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
kmemcheck: Fix build errors due to missing slab.h, Linux Kernel Mailing ..., (Mon Apr 5, 12:59 pm)