[PATCH -rt] fix for compiling 2.6.24.7-rt10 without CONFIG_FTRACE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----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 <williams@xxxxxxxxxx>

Signed-off-by: Clark Williams <williams@xxxxxxxxxx>
---

 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;

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux