Messages in this thread Patch in this message | | | Subject | [PATCH] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled | From | Pekka Enberg <> | Date | Tue, 24 Mar 2009 12:17:38 +0200 |
| |
From: Pekka Enberg <penberg@cs.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@linux360.ro> Signed-off-by: Pekka Enberg <penberg@cs.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
| |