aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2022-03-21 11:05:50 +0100
committerIngo Molnar <mingo@kernel.org>2022-03-21 11:13:49 +0100
commit3387ce4d8a5f2956fab827edf499fe6780e83faa (patch)
treefd11d043469570c50283411e6402df6cb85b46f6
parentsched/headers: Only include <linux/entry-common.h> when CONFIG_GENERIC_ENTRY=y (diff)
downloadlinux-dev-3387ce4d8a5f2956fab827edf499fe6780e83faa.tar.xz
linux-dev-3387ce4d8a5f2956fab827edf499fe6780e83faa.zip
headers/prep: Fix header to build standalone: <linux/psi.h>
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>
-rw-r--r--include/linux/psi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/psi.h b/include/linux/psi.h
index 7f7d1d88c3bb..89784763d19e 100644
--- a/include/linux/psi.h
+++ b/include/linux/psi.h
@@ -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;