VisionFive2 Linux kernel

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

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2020-08-11 18:33:44 -0700 committer: Linus Torvalds <torvalds@linux-foundation.org> 2020-08-12 10:57:58 -0700 commit: 428e2976a5bf7e7f5554286d7a5a33b8147b106a parent: efbfc62e1d9ce835fd3ea5f25db1844e1496ced6
Commit Summary:
uaccess: remove segment_eq
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/arch/h8300/include/asm/segment.h b/arch/h8300/include/asm/segment.h
index a407978f9f9f..37950725d9b9 100644
--- a/arch/h8300/include/asm/segment.h
+++ b/arch/h8300/include/asm/segment.h
@@ -33,7 +33,7 @@ static inline mm_segment_t get_fs(void)
 	return USER_DS;
 }
 
-#define segment_eq(a, b)	((a).seg == (b).seg)
+#define uaccess_kernel()	(get_fs().seg == KERNEL_DS.seg)
 
 #endif /* __ASSEMBLY__ */