Skip to contentSkip to conversation

fix for compiling 2.6.24.7-rt10 without CONFIG_FTRACE

PATCH In review Clark Williams 2 participants 2 messages May 24, 2008 – May 25, 2008 1 message not in the archive ftrace

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH 1/1 fix for compiling 2.6.24.7-rt10 without CONFIG_FTRACE

-----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-----

fix to handle compiling debugging without CONFIG_FTRACE

From: Clark Williams <[email protected]>

---

 include/linux/ftrace.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
include/linux/ftrace.h +2 -1
index 4c390ae..760d4cf 100644
@@ -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;
maintainer
#2 lore raw
Quoted 9 lines · Clark Williams

-----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.

Ah, you sent me this before, but I thought it was fixed with the new ftrace. Sorry, I'll re-apply it.

Thanks.

-- Steve