diff options
author | Christoph Hellwig <hch@lst.de> | 2019-04-23 12:38:06 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2019-04-23 15:51:39 -0400 |
commit | 737d42f75e943fd884ad13acb6d3ee3aff3dcd30 (patch) | |
tree | b6f1e8d4103699e9b6cb299c025785c79f2dcfee | |
parent | 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b (diff) |
asm-generic: don't include <asm/segment.h> from <asm/uaccess.h>
<asm/segment.h> is an odd x86 legacy that we shouldn't force on other
architectures. arc used it to bring in mm_context_t, but we can do
that inside the arc code easily.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
-rw-r--r-- | arch/arc/include/asm/uaccess.h | 1 | ||||
-rw-r--r-- | include/asm-generic/uaccess.h | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h index eabc3efa6c6d..526418543379 100644 --- a/arch/arc/include/asm/uaccess.h +++ b/arch/arc/include/asm/uaccess.h | |||
@@ -742,6 +742,7 @@ extern long arc_strnlen_user_noinline(const char __user *src, long n); | |||
742 | 742 | ||
743 | #endif | 743 | #endif |
744 | 744 | ||
745 | #include <asm/segment.h> | ||
745 | #include <asm-generic/uaccess.h> | 746 | #include <asm-generic/uaccess.h> |
746 | 747 | ||
747 | #endif | 748 | #endif |
diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess.h index b3d2241e03f8..aac336831204 100644 --- a/include/asm-generic/uaccess.h +++ b/include/asm-generic/uaccess.h | |||
@@ -9,8 +9,6 @@ | |||
9 | */ | 9 | */ |
10 | #include <linux/string.h> | 10 | #include <linux/string.h> |
11 | 11 | ||
12 | #include <asm/segment.h> | ||
13 | |||
14 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) | 12 | #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) }) |
15 | 13 | ||
16 | #ifndef KERNEL_DS | 14 | #ifndef KERNEL_DS |