VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-12 11:24:12 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-12 11:24:12 -0700 commit: 9ad57f6dfc2345ed5d3a8bf4dabac0a34069c54c parent: 24fb33d40d60bd7d196400e7d5b26ff566fd98b7
Commit Summary:
Merge branch 'akpm' (patches from Andrew)
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/ia64/include/asm/uaccess.h b/arch/ia64/include/asm/uaccess.h
index 8aa473a4b0f4..179243c3dfc7 100644
--- a/arch/ia64/include/asm/uaccess.h
+++ b/arch/ia64/include/asm/uaccess.h
@@ -50,7 +50,7 @@
 #define get_fs()  (current_thread_info()->addr_limit)
 #define set_fs(x) (current_thread_info()->addr_limit = (x))
 
-#define segment_eq(a, b)	((a).seg == (b).seg)
+#define uaccess_kernel()	(get_fs().seg == KERNEL_DS.seg)
 
 /*
  * When accessing user memory, we need to make sure the entire area really is in