From e819252f148375509fec4668c76eac75ec68cfb0 Mon Sep 17 00:00:00 2001 From: Paul Gortmaker Date: Tue, 15 Feb 2011 13:16:05 -0500 Subject: [PATCH] Fix compile failures due to missing perf header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The upstream header cleanup that took place between the rev list ^9e74e7c b66696e breaks on RT with: CC lib/kernel_lock.o In file included from /home/paul/tip-debare/include/linux/slab.h:171, include/linux/slab_def.h: In function ‘kmalloc’: include/linux/slab_def.h:157: error: implicit declaration of function ‘trace_kmalloc’ include/trace/events/kmem.h: In function ‘perf_trace_enable_kmalloc’: include/trace/events/kmem.h:81: error: implicit declaration of function ‘register_trace_kmalloc’ and similar for kernel/trace/power-traces.c -- the fix is the same for both. Signed-off-by: Paul Gortmaker --- kernel/trace/power-traces.c | 1 + lib/kernel_lock.c | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/kernel/trace/power-traces.c b/kernel/trace/power-traces.c index a22582a..1f2d92a 100644 --- a/kernel/trace/power-traces.c +++ b/kernel/trace/power-traces.c @@ -9,6 +9,7 @@ #include #include #include +#include #define CREATE_TRACE_POINTS #include diff --git a/lib/kernel_lock.c b/lib/kernel_lock.c index bc62ed8..6f64987 100644 --- a/lib/kernel_lock.c +++ b/lib/kernel_lock.c @@ -9,6 +9,7 @@ #include #include #include +#include #define CREATE_TRACE_POINTS #include -- 1.7.0.4