Skip to contentSkip to conversation

Fix build error in kernel/sched_debug.c when CONFIG_PREEMPT_RT_FULL is not set

PATCH New [email protected] 1 participant 1 message Aug 30, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build error in kernel/sched_debug.c when CONFIG_PREEMPT_RT_FULL is not set

From: Stratos Psomadakis <[email protected]>

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

---
 kernel/sched_debug.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/sched_debug.c +2 -0
index dba9e40..e68cf7f 100644
@@ -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
Signature · 1 line
1.7.6