Skip to content

Commit

Permalink
asm-generic: don't include <asm/segment.h> from <asm/uaccess.h>
Browse files Browse the repository at this point in the history
<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 <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
Christoph Hellwig authored and arndb committed Apr 23, 2019
1 parent 9e98c67 commit 737d42f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions arch/arc/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ extern long arc_strnlen_user_noinline(const char __user *src, long n);

#endif

#include <asm/segment.h>
#include <asm-generic/uaccess.h>

#endif
2 changes: 0 additions & 2 deletions include/asm-generic/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
#include <linux/string.h>

#include <asm/segment.h>

#define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })

#ifndef KERNEL_DS
Expand Down

0 comments on commit 737d42f

Please sign in to comment.