summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2018-01-05 17:46:15 +0000
committerBen Hutchings <ben@decadent.org.uk>2018-01-09 00:35:08 +0000
commitf1d30c2237b4953d8b842249c698ac067313a0ea (patch)
tree938bd9ca7d533af9baf224695aeaf80a734c6681 /drivers
parent807bb2be7bc4b7804ef6318ad37c0764d88ba256 (diff)
drivers/vhost: Fix mmu_context.h assumption
Some architectures (such as Alpha) rely on include/linux/sched.h definitions in their mmu_context.h files. So include sched.h before mmu_context.h. (This doesn't seem to be needed upstream, though a similar problem was fixed by commit 8efd755ac2fe "mm/mmu_context, sched/core: Fix mmu_context.h assumption".) Cc: Ingo Molnar <mingo@kernel.org> Cc: Hugh Dickins <hughd@google.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/vhost/vhost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
index 1fe2c8115be0..a9dfe6bd70eb 100644
--- a/drivers/vhost/vhost.c
+++ b/drivers/vhost/vhost.c
@@ -15,6 +15,7 @@
#include <linux/vhost.h>
#include <linux/uio.h>
#include <linux/mm.h>
+#include <linux/sched.h>
#include <linux/mmu_context.h>
#include <linux/miscdevice.h>
#include <linux/mutex.h>