* [PATCH -rt] fix for compiling 2.6.24.7-rt10 without CONFIG_FTRACE
[not found] <Pine.LNX.4.58.0805240221080.1841@gandalf.stny.rr.com>
@ 2008-05-24 19:49 ` Clark Williams
2008-05-25 0:47 ` Steven Rostedt
0 siblings, 1 reply; 2+ messages in thread
From: Clark Williams @ 2008-05-24 19:49 UTC (permalink / raw)
To: Steven Rostedt; +Cc: Steven Rostedt, LKML, RT
[-- Attachment #1: Type: text/plain, Size: 568 bytes --]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Steven,
If you build a debugging kernel and don't have CONFIG_FTRACE turned on, -rt10 dies
when compiling arch/x86/kernel/x8664_ksyms_64.c, because ktime_t isn't defined in the
prototypes at the bottom of include/linux/ftrace.h. Patch to fix attached.
Clark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkg4cVQACgkQqA4JVb61b9d0gQCffgzXgm2qaftlj5Q3fjjtyolD
J2MAnAoy4j9s2AUhZjwagT6OXzJ3Plgq
=9Ypr
-----END PGP SIGNATURE-----
[-- Attachment #2: debug-compile-fix.patch --]
[-- Type: text/plain, Size: 623 bytes --]
fix to handle compiling debugging without CONFIG_FTRACE
From: Clark Williams <williams@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
---
include/linux/ftrace.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h
index 4c390ae..760d4cf 100644
--- a/include/linux/ftrace.h
+++ b/include/linux/ftrace.h
@@ -1,10 +1,11 @@
#ifndef _LINUX_FTRACE_H
#define _LINUX_FTRACE_H
+#include <linux/ktime.h>
+
#ifdef CONFIG_FTRACE
#include <linux/linkage.h>
-#include <linux/ktime.h>
#include <linux/fs.h>
extern int ftrace_enabled;
^ permalink raw reply related [flat|nested] 2+ messages in thread