aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2014-12-12 16:55:41 -0800
committerAlex Shi <alex.shi@linaro.org>2017-05-26 14:50:50 +0800
commitba156556efc08b9a885bd4fd4307d95dc194b3e2 (patch)
tree7900673c1608d9cc054743150793f9f61c12e0c0
parentd3e2269a93dfccde5e3914c587148bfb7c098922 (diff)
downloadlinux-linaro-stable-ba156556efc08b9a885bd4fd4307d95dc194b3e2.tar.gz
include/linux/kmemleak.h: needs slab.hlsk-v3.18-17.05
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> (cherry picked from commit 66f2ca7e3f59312888131546176b42d6e248558a) Signed-off-by: Alex Shi <alex.shi@linaro.org>
-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 19acfdc3828f..d0a1f99e24e3 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;