]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
asm-generic: don't include <asm/segment.h> from <asm/uaccess.h>
authorChristoph Hellwig <hch@lst.de>
Tue, 23 Apr 2019 16:38:06 +0000 (18:38 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 23 Apr 2019 19:51:39 +0000 (21:51 +0200)
<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>
arch/arc/include/asm/uaccess.h
include/asm-generic/uaccess.h

index eabc3efa6c6ddf9ba97a3f1ca7cd7379d144e2d9..526418543379b9272edba4eb757070fba5ff6996 100644 (file)
@@ -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
index b3d2241e03f81c5d11d8bfb9bacb8f2e6676292f..aac336831204d033e8199205845312455595c17e 100644 (file)
@@ -9,8 +9,6 @@
  */
 #include <linux/string.h>
 
-#include <asm/segment.h>
-
 #define MAKE_MM_SEG(s) ((mm_segment_t) { (s) })
 
 #ifndef KERNEL_DS