[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1237889858.25315.75.camel@penberg-laptop>
Date: Tue, 24 Mar 2009 12:17:38 +0200
From: Pekka Enberg <penberg@...helsinki.fi>
To: mingo@...e.hu
Cc: eduard.munteanu@...ux360.ro, linux-kernel@...r.kernel.org
Subject: [PATCH] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled
From: Pekka Enberg <penberg@...helsinki.fi>
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'
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
Signed-off-by: Pekka Enberg <penberg@...helsinki.fi>
---
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,
--
1.5.4.3
--
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