summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnisse Astier <aastier@freebox.fr>2019-06-17 15:22:21 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-25 11:36:00 +0800
commit7499528bb0783f7a46683e1cad2eab9e5591a5e0 (patch)
tree143c7d740bc5a18e372ef4092f390aeb1438e07f
parent3e16b5c25466107d2479a5c068668dc1a8fa70e6 (diff)
downloadlinux-stable-7499528bb0783f7a46683e1cad2eab9e5591a5e0.tar.gz
linux-stable-7499528bb0783f7a46683e1cad2eab9e5591a5e0.tar.bz2
linux-stable-7499528bb0783f7a46683e1cad2eab9e5591a5e0.zip
arm64: ssbd: explicitly depend on <linux/prctl.h>
commit adeaa21a4b6954e878f3f7d1c5659ed9c1fe567a upstream. Fix ssbd.c which depends implicitly on asm/ptrace.h including linux/prctl.h (through for example linux/compat.h, then linux/time.h, linux/seqlock.h, linux/spinlock.h and linux/irqflags.h), and uses PR_SPEC* defines. This is an issue since we'll soon be removing the include from asm/ptrace.h. Fixes: 9cdc0108baa8 ("arm64: ssbd: Add prctl interface for per-thread mitigation") Cc: stable@vger.kernel.org Signed-off-by: Anisse Astier <aastier@freebox.fr> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--arch/arm64/kernel/ssbd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/kernel/ssbd.c b/arch/arm64/kernel/ssbd.c
index 3432e5ef9f41..388f8fc13080 100644
--- a/arch/arm64/kernel/ssbd.c
+++ b/arch/arm64/kernel/ssbd.c
@@ -4,6 +4,7 @@
*/
#include <linux/errno.h>
+#include <linux/prctl.h>
#include <linux/sched.h>
#include <linux/thread_info.h>