SLUB: Fix missing <linux/stacktrace.h> include
authorPekka Enberg <penberg@kernel.org>
Thu, 7 Jul 2011 19:47:01 +0000 (22:47 +0300)
committerPekka Enberg <penberg@kernel.org>
Thu, 7 Jul 2011 19:47:01 +0000 (22:47 +0300)
This fixes the following build breakage commit d6543e3 ("slub: Enable backtrace
for create/delete points"):

  CC      mm/slub.o
mm/slub.c: In function ‘set_track’:
mm/slub.c:428: error: storage size of ‘trace’ isn’t known
mm/slub.c:435: error: implicit declaration of function ‘save_stack_trace’
mm/slub.c:428: warning: unused variable ‘trace’
make[1]: *** [mm/slub.o] Error 1
make: *** [mm/slub.o] Error 2

Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slub.c

index e3403b30159e97d4b54f3ba4943004decef95d90..f899ff469f60b888b10bca3e85ae8179ba2bd4e3 100644 (file)
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -27,6 +27,7 @@
 #include <linux/memory.h>
 #include <linux/math64.h>
 #include <linux/fault-inject.h>
+#include <linux/stacktrace.h>
 
 #include <trace/events/kmem.h>