linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: fix missing include in asm uaccess.h
@ 2020-11-11  0:44 Ansuel Smith
  2020-11-11  0:58 ` Al Viro
  0 siblings, 1 reply; 6+ messages in thread
From: Ansuel Smith @ 2020-11-11  0:44 UTC (permalink / raw)
  To: Will Deacon
  Cc: Ansuel Smith, Catalin Marinas, Andrew Morton, Mark Rutland,
	Pavel Tatashin, Al Viro, linux-arm-kernel, linux-kernel

Fix a compilation error as PF_KTHREAD is defined in linux/sched.h and
this is missing.

Fixes: df325e05a682 ("arm64: Validate tagged addresses in access_ok()
called from kernel threads")
Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
---
 arch/arm64/include/asm/uaccess.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/arch/arm64/include/asm/uaccess.h b/arch/arm64/include/asm/uaccess.h
index 991dd5f031e4..51a4f63f464a 100644
--- a/arch/arm64/include/asm/uaccess.h
+++ b/arch/arm64/include/asm/uaccess.h
@@ -7,6 +7,8 @@
 #ifndef __ASM_UACCESS_H
 #define __ASM_UACCESS_H
 
+#include <linux/sched.h>
+
 #include <asm/alternative.h>
 #include <asm/kernel-pgtable.h>
 #include <asm/sysreg.h>
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-11-13  2:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-11  0:44 [PATCH] arm64: fix missing include in asm uaccess.h Ansuel Smith
2020-11-11  0:58 ` Al Viro
2020-11-11  1:09   ` Al Viro
2020-11-11  1:19     ` R: " ansuelsmth
2020-11-13  0:48       ` Andrew Morton
2020-11-13  2:40         ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).