public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Clark Williams <clark.williams@gmail.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: Steven Rostedt <srostedt@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>,
	RT <linux-rt-users@vger.kernel.org>
Subject: [PATCH -rt] fix for compiling 2.6.24.7-rt10 without CONFIG_FTRACE
Date: Sat, 24 May 2008 14:49:40 -0500	[thread overview]
Message-ID: <48387154.8070204@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0805240221080.1841@gandalf.stny.rr.com>

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

       reply	other threads:[~2008-05-24 19:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.4.58.0805240221080.1841@gandalf.stny.rr.com>
2008-05-24 19:49 ` Clark Williams [this message]
2008-05-25  0:47   ` [PATCH -rt] fix for compiling 2.6.24.7-rt10 without CONFIG_FTRACE Steven Rostedt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48387154.8070204@gmail.com \
    --to=clark.williams@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=srostedt@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox