lkml.org 
[lkml]   [2009]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled
From
Date
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




\
 
 \ /
  Last update: 2009-03-24 11:21    [W:0.497 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site