Fix build error in kernel/sched_debug.c when CONFIG_PREEMPT_RT_FULL is not set
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
Signed-off-by Stratos Psomadakis <[email protected]>
--- kernel/sched_debug.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
kernel/sched_debug.c +2 -0
@@ -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