futex: Fix PREEMPT_RT build
authorPeter Zijlstra <peterz@infradead.org>
Fri, 15 Oct 2021 10:05:59 +0000 (12:05 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 19 Oct 2021 15:27:05 +0000 (17:27 +0200)
Mike reported that rcuwait went walk-about and is causing failures on
the PREEMPT_RT builds, restore it.

Reported-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
kernel/futex/futex.h

index 948fcf3176812f1b537174323394bf7b45a67145..040ae4277cb0cad0070e468da015d28b06c94418 100644 (file)
@@ -5,6 +5,10 @@
 #include <linux/futex.h>
 #include <linux/sched/wake_q.h>
 
+#ifdef CONFIG_PREEMPT_RT
+#include <linux/rcuwait.h>
+#endif
+
 #include <asm/futex.h>
 
 /*