]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
uaccess: drop duplicate includes from asm/uaccess.h
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 27 Dec 2016 23:14:09 +0000 (18:14 -0500)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 6 Mar 2017 02:57:49 +0000 (21:57 -0500)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
35 files changed:
arch/alpha/include/asm/uaccess.h
arch/arc/include/asm/uaccess.h
arch/arm/include/asm/uaccess.h
arch/arm64/include/asm/uaccess.h
arch/avr32/include/asm/uaccess.h
arch/blackfin/include/asm/uaccess.h
arch/cris/include/asm/uaccess.h
arch/frv/include/asm/uaccess.h
arch/hexagon/include/asm/uaccess.h
arch/ia64/include/asm/uaccess.h
arch/m32r/include/asm/uaccess.h
arch/m68k/include/asm/uaccess_mm.h
arch/m68k/include/asm/uaccess_no.h
arch/metag/include/asm/uaccess.h
arch/microblaze/include/asm/uaccess.h
arch/mips/include/asm/uaccess.h
arch/mn10300/include/asm/uaccess.h
arch/nios2/include/asm/uaccess.h
arch/openrisc/include/asm/uaccess.h
arch/parisc/include/asm/uaccess.h
arch/powerpc/include/asm/uaccess.h
arch/s390/include/asm/uaccess.h
arch/score/include/asm/uaccess.h
arch/sh/include/asm/uaccess.h
arch/sparc/include/asm/uaccess_32.h
arch/sparc/include/asm/uaccess_64.h
arch/tile/include/asm/uaccess.h
arch/um/include/asm/uaccess.h
arch/unicore32/include/asm/uaccess.h
arch/x86/include/asm/uaccess.h
arch/x86/include/asm/uaccess_32.h
arch/x86/include/asm/uaccess_64.h
arch/xtensa/include/asm/uaccess.h
include/asm-generic/uaccess.h
include/linux/uaccess.h

index a37267a5d3996884c8f63d6dcd9f3e22f14d2ebe..77c55ce899365cb664c8a73f6cdb07ff287cce78 100644 (file)
@@ -1,10 +1,6 @@
 #ifndef __ALPHA_UACCESS_H
 #define __ALPHA_UACCESS_H
 
-#include <linux/errno.h>
-#include <linux/sched.h>
-
-
 /*
  * The fs value determines whether argument validity checking should be
  * performed or not.  If get_fs() == USER_DS, checking is performed, with
index 41faf17cd28d2ced7461f4e6860d2456fb49f8ae..0431f5668354515e8534161a64a40885923d3465 100644 (file)
@@ -24,8 +24,6 @@
 #ifndef _ASM_ARC_UACCESS_H
 #define _ASM_ARC_UACCESS_H
 
-#include <linux/sched.h>
-#include <asm/errno.h>
 #include <linux/string.h>      /* for generic string functions */
 
 
index a13f39b3e9f8e9873e8de24036dd0ee98902d2df..9677a7cf7987efcd97d5504f4b1a19f15848eda1 100644 (file)
@@ -12,8 +12,6 @@
  * User space memory access functions
  */
 #include <linux/string.h>
-#include <linux/thread_info.h>
-#include <asm/errno.h>
 #include <asm/memory.h>
 #include <asm/domain.h>
 #include <asm/unified.h>
index f5e1e090b4d23261697baa2809cdd732df26c636..7c514e10a08e17ad83be6a969fe6e14ad69e60f7 100644 (file)
 #include <linux/bitops.h>
 #include <linux/kasan-checks.h>
 #include <linux/string.h>
-#include <linux/thread_info.h>
 
 #include <asm/cpufeature.h>
 #include <asm/ptrace.h>
-#include <asm/errno.h>
 #include <asm/memory.h>
 #include <asm/compiler.h>
 
index 1c7f234385fce39ccb260ae701ceb0afa5330613..7ca5cb33369b0c82e1657669a7184fd798d35fb2 100644 (file)
@@ -8,9 +8,6 @@
 #ifndef __ASM_AVR32_UACCESS_H
 #define __ASM_AVR32_UACCESS_H
 
-#include <linux/errno.h>
-#include <linux/sched.h>
-
 typedef struct {
        unsigned int is_user_space;
 } mm_segment_t;
index d9a91108964f6f9687e8d60d4314e232a143d312..c9fedc3be30cb76591785d99ca967d9410be1588 100644 (file)
@@ -12,7 +12,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/string.h>
 
index 82bfcb5e2c9b627241c5e68ba69049ce5e414048..bb3004a2b2f76c1dd0fafae24f4eeb868469641b 100644 (file)
@@ -16,8 +16,6 @@
 #define _CRIS_UACCESS_H
 
 #ifndef __ASSEMBLY__
-#include <linux/sched.h>
-#include <linux/errno.h>
 #include <asm/processor.h>
 #include <asm/page.h>
 
index 9e01bd798a034b1312a1620af7f8dc8589099754..55b3a69c6c533fbed4d260cb53e870e1f3c710f2 100644 (file)
@@ -15,7 +15,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/sched.h>
 #include <linux/mm.h>
 #include <asm/segment.h>
 #include <asm/sections.h>
index 21f63593e2b6233267d81064c41ba4823ab188a6..3a7f818e5ef7eee020ff0216256b3662338a94e1 100644 (file)
@@ -23,7 +23,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/sched.h>
 #include <linux/mm.h>
 #include <asm/segment.h>
 #include <asm/sections.h>
index c60ff6cc8dbdfa29b2a5f90856e54a381fd4bbe4..d471d1a1afd038750f4e48cdfb5c343972ba2780 100644 (file)
@@ -33,8 +33,6 @@
  */
 
 #include <linux/compiler.h>
-#include <linux/errno.h>
-#include <linux/sched.h>
 #include <linux/page-flags.h>
 #include <linux/mm.h>
 
index 7d993a837e394130973684a4beab2bb2351ff016..96b0efdb5f222debe6f9ca884443899f8af8c815 100644 (file)
@@ -11,8 +11,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/errno.h>
-#include <linux/thread_info.h>
 #include <asm/page.h>
 #include <asm/setup.h>
 
index fa84e9c6e8f4bb61da2d6b36469fc7f21a96aafb..fb72b710759e213b2e880e46c22b042edb3cf278 100644 (file)
@@ -5,9 +5,7 @@
  * User space memory access functions
  */
 #include <linux/compiler.h>
-#include <linux/errno.h>
 #include <linux/types.h>
-#include <linux/sched.h>
 #include <asm/segment.h>
 
 /* We let the MMU do all checking */
index fab489a25b9583db7757eee2dbc0090fd709be2d..e77ce66c14d553a2b5c61fe3609d713e690d613e 100644 (file)
@@ -4,7 +4,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/sched.h>
 #include <linux/mm.h>
 #include <linux/string.h>
 
index 46c1f6c54103a5eb1656c0276664ce96e19f7fac..7fc5277ae71f3e8a4a939b8cb21ae729a979c968 100644 (file)
@@ -4,7 +4,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/sched.h>
 
 /*
  * The fs value determines whether argument validity checking should be
index 70cf5f3dfae377271a92783585d256cce6940ff9..a3c0a06d784807737fdc647b04bad6e20f680304 100644 (file)
@@ -15,8 +15,6 @@
 #ifndef __ASSEMBLY__
 
 #include <linux/kernel.h>
-#include <linux/errno.h>
-#include <linux/sched.h> /* RLIMIT_FSIZE */
 #include <linux/mm.h>
 
 #include <asm/mmu.h>
index a058c04b8dd47b049c32e7d9b8f3b9a25e43ab4d..dd25b312c9737116a094eb540f8964941c4a0ee9 100644 (file)
@@ -12,8 +12,6 @@
 #define _ASM_UACCESS_H
 
 #include <linux/kernel.h>
-#include <linux/errno.h>
-#include <linux/thread_info.h>
 #include <linux/string.h>
 #include <asm/asm-eva.h>
 #include <asm/extable.h>
index 3e16850c4ccda679162f14044ee607cfa6ef0ccf..2da7b0fed4aad8d39a1d90d0224b7ccc415f1fa5 100644 (file)
 /*
  * User space memory access functions
  */
-#include <linux/thread_info.h>
 #include <linux/kernel.h>
 #include <asm/page.h>
-#include <asm/errno.h>
 
 /*
  * The fs value determines whether argument validity checking should be
index 07fc68c3e23c92e26c07f2234799ed419a1eb31b..198bbf15f644985622373893daa484e61ae59441 100644 (file)
@@ -13,8 +13,6 @@
 #ifndef _ASM_NIOS2_UACCESS_H
 #define _ASM_NIOS2_UACCESS_H
 
-#include <linux/errno.h>
-#include <linux/thread_info.h>
 #include <linux/string.h>
 
 #include <asm/page.h>
index 6f88cf8bd112d6927d901b9bb90b38e3ec402083..0b0f60444b767f31d2720ce9e95687aec77ab3c6 100644 (file)
@@ -22,8 +22,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/errno.h>
-#include <linux/thread_info.h>
 #include <linux/prefetch.h>
 #include <linux/string.h>
 #include <asm/page.h>
index 598b52e5aa0374c9ffd0d812102d079ee62bd8f6..a0b461336b6a28ce4cdcd474fe74d626cec3c808 100644 (file)
@@ -6,12 +6,10 @@
  */
 #include <asm/page.h>
 #include <asm/cache.h>
-#include <asm/errno.h>
 #include <asm-generic/uaccess-unaligned.h>
 
 #include <linux/bug.h>
 #include <linux/string.h>
-#include <linux/thread_info.h>
 
 #define KERNEL_DS      ((mm_segment_t){0})
 #define USER_DS        ((mm_segment_t){1})
index 81307633c33ffd780e516909468e742314a23450..2ec70aa1cc5dae4fc883cf26024e8e3020c8f5f4 100644 (file)
@@ -4,8 +4,6 @@
 #ifdef __KERNEL__
 #ifndef __ASSEMBLY__
 
-#include <linux/sched.h>
-#include <linux/errno.h>
 #include <asm/asm-compat.h>
 #include <asm/ppc_asm.h>
 #include <asm/processor.h>
index 0e1f515d239bcf9d73d54588c17bc02052f81d3b..9e9a5e8d6cf6d496ce57d85fb35b6140f8ecb859 100644 (file)
@@ -12,8 +12,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/sched.h>
-#include <linux/errno.h>
 #include <asm/processor.h>
 #include <asm/ctl_reg.h>
 
index 51914244e8670e1b5180426f292de73076e8e05d..7a6c6982420a88107b3846da3836f051fd433b66 100644 (file)
@@ -2,8 +2,6 @@
 #define __SCORE_UACCESS_H
 
 #include <linux/kernel.h>
-#include <linux/errno.h>
-#include <linux/thread_info.h>
 #include <asm/extable.h>
 
 #define get_ds()               (KERNEL_DS)
index 6b66d67c21d29ebeca2b58d2b33804b1e231262f..89a28dfbabfa5c7014123949e65915cbeef34048 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __ASM_SH_UACCESS_H
 #define __ASM_SH_UACCESS_H
 
-#include <linux/errno.h>
-#include <linux/sched.h>
 #include <asm/segment.h>
 
 #define __addr_ok(addr) \
index d8857f5fafadbc750d96e09a8c9c3de4e98118de..b10f7d626f0e65df76c810c30787b8ff9e401c77 100644 (file)
@@ -9,9 +9,7 @@
 
 #ifdef __KERNEL__
 #include <linux/compiler.h>
-#include <linux/sched.h>
 #include <linux/string.h>
-#include <linux/errno.h>
 #endif
 
 #ifndef __ASSEMBLY__
index 619223dc902265c632d01a0242b5d341a59032a2..d76362cad80f199dd422d3ec3deb637a213bdc1f 100644 (file)
@@ -6,10 +6,8 @@
  */
 
 #ifdef __KERNEL__
-#include <linux/errno.h>
 #include <linux/compiler.h>
 #include <linux/string.h>
-#include <linux/thread_info.h>
 #include <asm/asi.h>
 #include <asm/spitfire.h>
 #include <asm-generic/uaccess-unaligned.h>
index 730073326b462ec503648bf4737ec4c98aa931b8..14ea3d1ca2c7eba26e2d2daaeb51e09502533160 100644 (file)
@@ -18,7 +18,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/sched.h>
 #include <linux/mm.h>
 #include <asm-generic/uaccess-unaligned.h>
 #include <asm/processor.h>
index 3705620ca298b18f6e2f3a6de492a6912f492196..076bdcb0c2ad8e5d8ce50dfe75a68d04d66785fa 100644 (file)
@@ -7,7 +7,6 @@
 #ifndef __UM_UACCESS_H
 #define __UM_UACCESS_H
 
-#include <asm/thread_info.h>
 #include <asm/elf.h>
 
 #define __under_task_size(addr, size) \
index 897e11ad8124a0eb977dcbf54eec37254fbb6958..1622f37a0514af4fd0e8b50dfa1479c6448170a9 100644 (file)
@@ -12,9 +12,6 @@
 #ifndef __UNICORE_UACCESS_H__
 #define __UNICORE_UACCESS_H__
 
-#include <linux/thread_info.h>
-#include <linux/errno.h>
-
 #include <asm/memory.h>
 
 #define __copy_from_user       __copy_from_user
index 8dffb8b1d32804a1a13f382cb0b667de2b4de166..0522d88a7f90b5c6bb5694d5654f87fb0e819a56 100644 (file)
@@ -3,10 +3,8 @@
 /*
  * User space memory access functions
  */
-#include <linux/errno.h>
 #include <linux/compiler.h>
 #include <linux/kasan-checks.h>
-#include <linux/thread_info.h>
 #include <linux/string.h>
 #include <asm/asm.h>
 #include <asm/page.h>
index 7d3bdd1ed6977b5e1f69dc8ba3e3d6cfa8f861a3..5268ecceea966d2aa30bbb44de7e3b03403609fd 100644 (file)
@@ -4,8 +4,6 @@
 /*
  * User space memory access functions
  */
-#include <linux/errno.h>
-#include <linux/thread_info.h>
 #include <linux/string.h>
 #include <asm/asm.h>
 #include <asm/page.h>
index 673059a109fee067a6739704470f947fd7acae57..8ddadd93639e92e8b6c57e182a438a5773b0d823 100644 (file)
@@ -5,7 +5,6 @@
  * User space memory access functions
  */
 #include <linux/compiler.h>
-#include <linux/errno.h>
 #include <linux/lockdep.h>
 #include <linux/kasan-checks.h>
 #include <asm/alternative.h>
index dd6b13649aad98373dcdffa2f4bd10b458b77718..bd8861c811ef1614879a300b5b858c841cff1a65 100644 (file)
 #ifndef _XTENSA_UACCESS_H
 #define _XTENSA_UACCESS_H
 
-#include <linux/errno.h>
 #include <linux/prefetch.h>
 #include <asm/types.h>
 
-#include <linux/sched.h>
-
 /*
  * The fs value determines whether argument validity checking should
  * be performed or not.  If get_fs() == USER_DS, checking is
index d7c17bfd4601a7e19d3d877c2e698693af2e9a56..d20955e495b388e110ede0f274f542dbb4deb89c 100644 (file)
@@ -6,7 +6,6 @@
  * on any machine that has kernel and user data in the same
  * address space, e.g. all NOMMU machines.
  */
-#include <linux/sched.h>
 #include <linux/string.h>
 
 #include <asm/segment.h>
index b660f37beaf5a9b51f7718dda10deda722f5260a..b786ca2419b4fc42120c3c18bb6d22c7a3a2fb13 100644 (file)
@@ -2,6 +2,7 @@
 #define __LINUX_UACCESS_H__
 
 #include <linux/sched.h>
+#include <linux/thread_info.h>
 
 #define VERIFY_READ 0
 #define VERIFY_WRITE 1