aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-05-24 18:55:05 -0600
committerJason A. Donenfeld <Jason@zx2c4.com>2020-09-30 16:25:42 +0200
commit80da0f64facbff694801fbae4f299b7bd0ac8725 (patch)
tree6e060de68b569a98c87ec61ad56b2b15d87b84c8
parentx86: do not evaluate sometimes-undefined _PAGE_BIT_SWP_SOFT_DIRTY (diff)
downloadrhel7-kernel-misery-80da0f64facbff694801fbae4f299b7bd0ac8725.tar.xz
rhel7-kernel-misery-80da0f64facbff694801fbae4f299b7bd0ac8725.zip
mm: include sched.h for task_struct usage
Functions in here dereference current, which means we need to include linux/sched.h to avoid compilation errors. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r--include/linux/mm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mm.h b/include/linux/mm.h
index 0b9b3545c65..7dfb104b53d 100644
--- a/include/linux/mm.h
+++ b/include/linux/mm.h
@@ -24,6 +24,7 @@
#include <linux/page_ref.h>
#include <linux/page_ext.h>
#include <linux/memremap.h>
+#include <linux/sched.h>
struct mempolicy;
struct anon_vma;