]> Gentwo Git Trees - linux/.git/commitdiff
cgroup: include missing header for struct irq_work
authorBert Karwatzki <spasswolf@web.de>
Tue, 11 Nov 2025 17:01:43 +0000 (18:01 +0100)
committerTejun Heo <tj@kernel.org>
Tue, 11 Nov 2025 18:52:42 +0000 (08:52 -1000)
To compile cgroup.c with PREEMPT_RT=y include header which declares
struct irq_work.

Fixes: 9311e6c29b34 ("cgroup: Fix sleeping from invalid context warning on PREEMPT_RT")
Signed-off-by: Bert Karwatzki <spasswolf@web.de>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cgroup.c

index 48019a661c080b9ccad8847341a4f66dbda05e18..f6cc504dfe1c97299794a583d02721ff262a360a 100644 (file)
@@ -60,6 +60,7 @@
 #include <linux/sched/deadline.h>
 #include <linux/psi.h>
 #include <linux/nstree.h>
+#include <linux/irq_work.h>
 #include <net/sock.h>
 
 #define CREATE_TRACE_POINTS