Skip to content

Commit 737d42f

Browse files
Christoph Hellwigarndb
authored andcommitted
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>
1 parent 9e98c67 commit 737d42f

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

‎arch/arc/include/asm/uaccess.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,7 @@ extern long arc_strnlen_user_noinline(const char __user *src, long n);
742742

743743
#endif
744744

745+
#include <asm/segment.h>
745746
#include <asm-generic/uaccess.h>
746747

747748
#endif

‎include/asm-generic/uaccess.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
*/
1010
#include <linux/string.h>
1111

12-
#include <asm/segment.h>
13-
1412
#define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
1513

1614
#ifndef KERNEL_DS

0 commit comments

Comments
 (0)