All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled
@ 2009-03-24 10:17 Pekka Enberg
  2009-03-24 12:03 ` [tip:tracing/kmemtrace] " Pekka Enberg
  0 siblings, 1 reply; 2+ messages in thread
From: Pekka Enberg @ 2009-03-24 10:17 UTC (permalink / raw)
  To: mingo; +Cc: eduard.munteanu, linux-kernel

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




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [tip:tracing/kmemtrace] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled
  2009-03-24 10:17 [PATCH] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled Pekka Enberg
@ 2009-03-24 12:03 ` Pekka Enberg
  0 siblings, 0 replies; 2+ messages in thread
From: Pekka Enberg @ 2009-03-24 12:03 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, penberg, eduard.munteanu, tglx, mingo

Commit-ID:  ebe7ac8e115e6b6e1f4c2a177ba718f43b6bd23e
Gitweb:     http://git.kernel.org/tip/ebe7ac8e115e6b6e1f4c2a177ba718f43b6bd23e
Author:     Pekka Enberg <penberg@cs.helsinki.fi>
AuthorDate: Tue, 24 Mar 2009 12:17:38 +0200
Committer:  Ingo Molnar <mingo@elte.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@cs.helsinki.fi>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
LKML-Reference: <1237889858.25315.75.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.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,

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-24 12:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-24 10:17 [PATCH] kmemtrace: fix build when CONFIG_KMEMTRACE is disabled Pekka Enberg
2009-03-24 12:03 ` [tip:tracing/kmemtrace] " Pekka Enberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.