linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: psomas@gentoo.org
To: linux-rt-users@vger.kernel.org
Cc: peterz@infradead.org, Stratos Psomadakis <psomas@gentoo.org>
Subject: [PATCH] Fix build error in kernel/sched_debug.c when CONFIG_PREEMPT_RT_FULL is not set
Date: Tue, 30 Aug 2011 12:48:22 +0300	[thread overview]
Message-ID: <1314697702-19946-1-git-send-email-psomas@gentoo.org> (raw)

From: Stratos Psomadakis <psomas@gentoo.org>

When CONFIG_PREEMPT_RT_FULL is not set, a build error occurs due to
migrate_disable task_struct member not existing. 

Trivial fix, enclose it inside an #ifdef

Signed-off-by: Stratos Psomadakis <psomas@gentoo.org>
---
 kernel/sched_debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c
index dba9e40..e68cf7f 100644
--- a/kernel/sched_debug.c
+++ b/kernel/sched_debug.c
@@ -485,7 +485,9 @@ void proc_sched_show_task(struct task_struct *p, struct seq_file *m)
 	P(se.load.weight);
 	P(policy);
 	P(prio);
+#ifdef CONFIG_PREEMPT_RT_FULL
 	P(migrate_disable);
+#endif
 	P(rt.nr_cpus_allowed);
 #undef PN
 #undef __PN
-- 
1.7.6


                 reply	other threads:[~2011-08-30  9:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1314697702-19946-1-git-send-email-psomas@gentoo.org \
    --to=psomas@gentoo.org \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=peterz@infradead.org \
    /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;
as well as URLs for NNTP newsgroup(s).