headers/prep: Fix header to build standalone: <linux/psi.h>
authorIngo Molnar <mingo@kernel.org>
Mon, 21 Mar 2022 10:05:50 +0000 (11:05 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 21 Mar 2022 10:13:49 +0000 (11:13 +0100)
Add the <linux/cgroup-defs.h> dependency to <linux/psi.h>, because
cgroup_move_task() will dereference 'struct css_set'.

( Only older toolchains are affected, due to variations in
  the implementation of rcu_assign_pointer() et al. )

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Reported-by: Sachin Sant <sachinp@linux.ibm.com>
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
include/linux/psi.h

index 7f7d1d88c3bbd5a36477b974a348366e9e3d5544..89784763d19e2647bdfa0082652abcccec7cf038 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/psi_types.h>
 #include <linux/sched.h>
 #include <linux/poll.h>
+#include <linux/cgroup-defs.h>
 
 struct seq_file;
 struct css_set;