[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-ebe7ac8e115e6b6e1f4c2a177ba718f43b6bd23e@git.kernel.org>
Date: Tue, 24 Mar 2009 12:03:36 GMT
From: Pekka Enberg <penberg@...helsinki.fi>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
penberg@...helsinki.fi, eduard.munteanu@...ux360.ro,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:tracing/kmemtrace] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled
Commit-ID: ebe7ac8e115e6b6e1f4c2a177ba718f43b6bd23e
Gitweb: http://git.kernel.org/tip/ebe7ac8e115e6b6e1f4c2a177ba718f43b6bd23e
Author: Pekka Enberg <penberg@...helsinki.fi>
AuthorDate: Tue, 24 Mar 2009 12:17:38 +0200
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Tue, 24 Mar 2009 11:31:51 +0100
kmemtrace: fix build when CONFIG_KMEMTRACE is disabled
Impact: fix build
This patch fixes the following allnoconfig failure:
init/built-in.o: In function `start_kernel':
(.init.text+0x669): undefined reference to `kmemtrace_init'
Signed-off-by: Pekka Enberg <penberg@...helsinki.fi>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
LKML-Reference: <1237889858.25315.75.camel@...berg-laptop>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
include/trace/kmemtrace.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/trace/kmemtrace.h b/include/trace/kmemtrace.h
index 7514476..28ee69f 100644
--- a/include/trace/kmemtrace.h
+++ b/include/trace/kmemtrace.h
@@ -12,7 +12,13 @@
#include <linux/tracepoint.h>
#include <linux/types.h>
+#ifdef CONFIG_KMEMTRACE
extern void kmemtrace_init(void);
+#else
+static inline void kmemtrace_init(void)
+{
+}
+#endif
DECLARE_TRACE(kmalloc,
TP_PROTO(unsigned long call_site,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists