summaryrefslogtreecommitdiffstats
path: root/arch/x86/um/asm/segment.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-12-15 17:56:12 +0100
committerRichard Weinberger <richard@nod.at>2021-12-22 17:56:56 +0100
commit8bb227ac34c062b466a0d5fd21f060010375880b (patch)
treeaec5b756553198a4b1638eb798e59905c0a2df53 /arch/x86/um/asm/segment.h
parenthostfs: Fix writeback of dirty pages (diff)
downloadlinux-8bb227ac34c062b466a0d5fd21f060010375880b.tar.xz
linux-8bb227ac34c062b466a0d5fd21f060010375880b.zip
um: remove set_fs
Remove address space overrides using set_fs() for User Mode Linux. Note that just like the existing kernel access case of the uaccess routines the new nofault kernel handlers do not actually have any exception handling. This is probably broken, but not change to the status quo. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/x86/um/asm/segment.h')
-rw-r--r--arch/x86/um/asm/segment.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/x86/um/asm/segment.h b/arch/x86/um/asm/segment.h
index 453db377150d..2ef507bc6989 100644
--- a/arch/x86/um/asm/segment.h
+++ b/arch/x86/um/asm/segment.h
@@ -8,12 +8,4 @@ extern int host_gdt_entry_tls_min;
#define GDT_ENTRY_TLS_MIN host_gdt_entry_tls_min
#define GDT_ENTRY_TLS_MAX (GDT_ENTRY_TLS_MIN + GDT_ENTRY_TLS_ENTRIES - 1)
-typedef struct {
- unsigned long seg;
-} mm_segment_t;
-
-#define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
-#define KERNEL_DS MAKE_MM_SEG(~0UL)
-#define USER_DS MAKE_MM_SEG(TASK_SIZE)
-
#endif