summaryrefslogtreecommitdiffstats
path: root/include/linux/kmemleak.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-12-12 16:55:41 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2014-12-13 12:42:47 -0800
commit66f2ca7e3f59312888131546176b42d6e248558a (patch)
tree680d98ef84771b50677ed31df4f6197cc3d1b794 /include/linux/kmemleak.h
parent056b7ccef4bc670b1ed77181159c8228de0926ab (diff)
downloadlinux-stable-66f2ca7e3f59312888131546176b42d6e248558a.tar.gz
linux-stable-66f2ca7e3f59312888131546176b42d6e248558a.tar.bz2
linux-stable-66f2ca7e3f59312888131546176b42d6e248558a.zip
include/linux/kmemleak.h: needs slab.h
include/linux/kmemleak.h: In function 'kmemleak_alloc_recursive': include/linux/kmemleak.h:43: error: 'SLAB_NOLEAKTRACE' undeclared (first use in this function) Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/kmemleak.h')
-rw-r--r--include/linux/kmemleak.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/kmemleak.h b/include/linux/kmemleak.h
index 057e95971014..e705467ddb47 100644
--- a/include/linux/kmemleak.h
+++ b/include/linux/kmemleak.h
@@ -21,6 +21,8 @@
#ifndef __KMEMLEAK_H
#define __KMEMLEAK_H
+#include <linux/slab.h>
+
#ifdef CONFIG_DEBUG_KMEMLEAK
extern void kmemleak_init(void) __ref;