diff options
35 files changed, 1 insertions, 64 deletions
diff --git a/arch/alpha/include/asm/uaccess.h b/arch/alpha/include/asm/uaccess.h index a37267a5d399..77c55ce89936 100644 --- a/arch/alpha/include/asm/uaccess.h +++ b/arch/alpha/include/asm/uaccess.h | |||
@@ -1,10 +1,6 @@ | |||
1 | #ifndef __ALPHA_UACCESS_H | 1 | #ifndef __ALPHA_UACCESS_H |
2 | #define __ALPHA_UACCESS_H | 2 | #define __ALPHA_UACCESS_H |
3 | 3 | ||
4 | #include <linux/errno.h> | ||
5 | #include <linux/sched.h> | ||
6 | |||
7 | |||
8 | /* | 4 | /* |
9 | * The fs value determines whether argument validity checking should be | 5 | * The fs value determines whether argument validity checking should be |
10 | * performed or not. If get_fs() == USER_DS, checking is performed, with | 6 | * performed or not. If get_fs() == USER_DS, checking is performed, with |
diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h index 41faf17cd28d..0431f5668354 100644 --- a/arch/arc/include/asm/uaccess.h +++ b/arch/arc/include/asm/uaccess.h | |||
@@ -24,8 +24,6 @@ | |||
24 | #ifndef _ASM_ARC_UACCESS_H | 24 | #ifndef _ASM_ARC_UACCESS_H |
25 | #define _ASM_ARC_UACCESS_H | 25 | #define _ASM_ARC_UACCESS_H |
26 | 26 | ||
27 | #include <linux/sched.h> | ||
28 | #include <asm/errno.h> | ||
29 | #include <linux/string.h> /* for generic string functions */ | 27 | #include <linux/string.h> /* for generic string functions */ |
30 | 28 | ||
31 | 29 | ||
diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h index a13f39b3e9f8..9677a7cf7987 100644 --- a/arch/arm/include/asm/uaccess.h +++ b/arch/arm/include/asm/uaccess.h | |||
@@ -12,8 +12,6 @@ | |||
12 | * User space memory access functions | 12 | * User space memory access functions |
13 | */ | 13 | */ |
14 | #include <linux/string.h> | 14 | #include <linux/string.h> |
15 | #include <linux/thread_info.h> | ||
16 | #include <asm/errno.h> | ||
17 | #include <asm/memory.h> | 15 | #include <asm/memory.h> |
18 | #include <asm/domain.h> | 16 | #include <asm/domain.h> |
19 | #include <asm/unified.h> | 17 | #include <asm/unified.h> |
diff --git a/arch/arm64/include/asm/uaccess.h b/arch/arm64/include/asm/uaccess.h index f5e1e090b4d2..7c514e10a08e 100644 --- a/arch/arm64/include/asm/uaccess.h +++ b/arch/arm64/include/asm/uaccess.h | |||
@@ -28,11 +28,9 @@ | |||
28 | #include <linux/bitops.h> | 28 | #include <linux/bitops.h> |
29 | #include <linux/kasan-checks.h> | 29 | #include <linux/kasan-checks.h> |
30 | #include <linux/string.h> | 30 | #include <linux/string.h> |
31 | #include <linux/thread_info.h> | ||
32 | 31 | ||
33 | #include <asm/cpufeature.h> | 32 | #include <asm/cpufeature.h> |
34 | #include <asm/ptrace.h> | 33 | #include <asm/ptrace.h> |
35 | #include <asm/errno.h> | ||
36 | #include <asm/memory.h> | 34 | #include <asm/memory.h> |
37 | #include <asm/compiler.h> | 35 | #include <asm/compiler.h> |
38 | 36 | ||
diff --git a/arch/avr32/include/asm/uaccess.h b/arch/avr32/include/asm/uaccess.h index 1c7f234385fc..7ca5cb33369b 100644 --- a/arch/avr32/include/asm/uaccess.h +++ b/arch/avr32/include/asm/uaccess.h | |||
@@ -8,9 +8,6 @@ | |||
8 | #ifndef __ASM_AVR32_UACCESS_H | 8 | #ifndef __ASM_AVR32_UACCESS_H |
9 | #define __ASM_AVR32_UACCESS_H | 9 | #define __ASM_AVR32_UACCESS_H |
10 | 10 | ||
11 | #include <linux/errno.h> | ||
12 | #include <linux/sched.h> | ||
13 | |||
14 | typedef struct { | 11 | typedef struct { |
15 | unsigned int is_user_space; | 12 | unsigned int is_user_space; |
16 | } mm_segment_t; | 13 | } mm_segment_t; |
diff --git a/arch/blackfin/include/asm/uaccess.h b/arch/blackfin/include/asm/uaccess.h index d9a91108964f..c9fedc3be30c 100644 --- a/arch/blackfin/include/asm/uaccess.h +++ b/arch/blackfin/include/asm/uaccess.h | |||
@@ -12,7 +12,6 @@ | |||
12 | /* | 12 | /* |
13 | * User space memory access functions | 13 | * User space memory access functions |
14 | */ | 14 | */ |
15 | #include <linux/sched.h> | ||
16 | #include <linux/mm.h> | 15 | #include <linux/mm.h> |
17 | #include <linux/string.h> | 16 | #include <linux/string.h> |
18 | 17 | ||
diff --git a/arch/cris/include/asm/uaccess.h b/arch/cris/include/asm/uaccess.h index 82bfcb5e2c9b..bb3004a2b2f7 100644 --- a/arch/cris/include/asm/uaccess.h +++ b/arch/cris/include/asm/uaccess.h | |||
@@ -16,8 +16,6 @@ | |||
16 | #define _CRIS_UACCESS_H | 16 | #define _CRIS_UACCESS_H |
17 | 17 | ||
18 | #ifndef __ASSEMBLY__ | 18 | #ifndef __ASSEMBLY__ |
19 | #include <linux/sched.h> | ||
20 | #include <linux/errno.h> | ||
21 | #include <asm/processor.h> | 19 | #include <asm/processor.h> |
22 | #include <asm/page.h> | 20 | #include <asm/page.h> |
23 | 21 | ||
diff --git a/arch/frv/include/asm/uaccess.h b/arch/frv/include/asm/uaccess.h index 9e01bd798a03..55b3a69c6c53 100644 --- a/arch/frv/include/asm/uaccess.h +++ b/arch/frv/include/asm/uaccess.h | |||
@@ -15,7 +15,6 @@ | |||
15 | /* | 15 | /* |
16 | * User space memory access functions | 16 | * User space memory access functions |
17 | */ | 17 | */ |
18 | #include <linux/sched.h> | ||
19 | #include <linux/mm.h> | 18 | #include <linux/mm.h> |
20 | #include <asm/segment.h> | 19 | #include <asm/segment.h> |
21 | #include <asm/sections.h> | 20 | #include <asm/sections.h> |
diff --git a/arch/hexagon/include/asm/uaccess.h b/arch/hexagon/include/asm/uaccess.h index 21f63593e2b6..3a7f818e5ef7 100644 --- a/arch/hexagon/include/asm/uaccess.h +++ b/arch/hexagon/include/asm/uaccess.h | |||
@@ -23,7 +23,6 @@ | |||
23 | /* | 23 | /* |
24 | * User space memory access functions | 24 | * User space memory access functions |
25 | */ | 25 | */ |
26 | #include <linux/sched.h> | ||
27 | #include <linux/mm.h> | 26 | #include <linux/mm.h> |
28 | #include <asm/segment.h> | 27 | #include <asm/segment.h> |
29 | #include <asm/sections.h> | 28 | #include <asm/sections.h> |
diff --git a/arch/ia64/include/asm/uaccess.h b/arch/ia64/include/asm/uaccess.h index c60ff6cc8dbd..d471d1a1afd0 100644 --- a/arch/ia64/include/asm/uaccess.h +++ b/arch/ia64/include/asm/uaccess.h | |||
@@ -33,8 +33,6 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include <linux/compiler.h> | 35 | #include <linux/compiler.h> |
36 | #include <linux/errno.h> | ||
37 | #include <linux/sched.h> | ||
38 | #include <linux/page-flags.h> | 36 | #include <linux/page-flags.h> |
39 | #include <linux/mm.h> | 37 | #include <linux/mm.h> |
40 | 38 | ||
diff --git a/arch/m32r/include/asm/uaccess.h b/arch/m32r/include/asm/uaccess.h index 7d993a837e39..96b0efdb5f22 100644 --- a/arch/m32r/include/asm/uaccess.h +++ b/arch/m32r/include/asm/uaccess.h | |||
@@ -11,8 +11,6 @@ | |||
11 | /* | 11 | /* |
12 | * User space memory access functions | 12 | * User space memory access functions |
13 | */ | 13 | */ |
14 | #include <linux/errno.h> | ||
15 | #include <linux/thread_info.h> | ||
16 | #include <asm/page.h> | 14 | #include <asm/page.h> |
17 | #include <asm/setup.h> | 15 | #include <asm/setup.h> |
18 | 16 | ||
diff --git a/arch/m68k/include/asm/uaccess_mm.h b/arch/m68k/include/asm/uaccess_mm.h index fa84e9c6e8f4..fb72b710759e 100644 --- a/arch/m68k/include/asm/uaccess_mm.h +++ b/arch/m68k/include/asm/uaccess_mm.h | |||
@@ -5,9 +5,7 @@ | |||
5 | * User space memory access functions | 5 | * User space memory access functions |
6 | */ | 6 | */ |
7 | #include <linux/compiler.h> | 7 | #include <linux/compiler.h> |
8 | #include <linux/errno.h> | ||
9 | #include <linux/types.h> | 8 | #include <linux/types.h> |
10 | #include <linux/sched.h> | ||
11 | #include <asm/segment.h> | 9 | #include <asm/segment.h> |
12 | 10 | ||
13 | /* We let the MMU do all checking */ | 11 | /* We let the MMU do all checking */ |
diff --git a/arch/m68k/include/asm/uaccess_no.h b/arch/m68k/include/asm/uaccess_no.h index fab489a25b95..e77ce66c14d5 100644 --- a/arch/m68k/include/asm/uaccess_no.h +++ b/arch/m68k/include/asm/uaccess_no.h | |||
@@ -4,7 +4,6 @@ | |||
4 | /* | 4 | /* |
5 | * User space memory access functions | 5 | * User space memory access functions |
6 | */ | 6 | */ |
7 | #include <linux/sched.h> | ||
8 | #include <linux/mm.h> | 7 | #include <linux/mm.h> |
9 | #include <linux/string.h> | 8 | #include <linux/string.h> |
10 | 9 | ||
diff --git a/arch/metag/include/asm/uaccess.h b/arch/metag/include/asm/uaccess.h index 46c1f6c54103..7fc5277ae71f 100644 --- a/arch/metag/include/asm/uaccess.h +++ b/arch/metag/include/asm/uaccess.h | |||
@@ -4,7 +4,6 @@ | |||
4 | /* | 4 | /* |
5 | * User space memory access functions | 5 | * User space memory access functions |
6 | */ | 6 | */ |
7 | #include <linux/sched.h> | ||
8 | 7 | ||
9 | /* | 8 | /* |
10 | * The fs value determines whether argument validity checking should be | 9 | * The fs value determines whether argument validity checking should be |
diff --git a/arch/microblaze/include/asm/uaccess.h b/arch/microblaze/include/asm/uaccess.h index 70cf5f3dfae3..a3c0a06d7848 100644 --- a/arch/microblaze/include/asm/uaccess.h +++ b/arch/microblaze/include/asm/uaccess.h | |||
@@ -15,8 +15,6 @@ | |||
15 | #ifndef __ASSEMBLY__ | 15 | #ifndef __ASSEMBLY__ |
16 | 16 | ||
17 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
18 | #include <linux/errno.h> | ||
19 | #include <linux/sched.h> /* RLIMIT_FSIZE */ | ||
20 | #include <linux/mm.h> | 18 | #include <linux/mm.h> |
21 | 19 | ||
22 | #include <asm/mmu.h> | 20 | #include <asm/mmu.h> |
diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index a058c04b8dd4..dd25b312c973 100644 --- a/arch/mips/include/asm/uaccess.h +++ b/arch/mips/include/asm/uaccess.h | |||
@@ -12,8 +12,6 @@ | |||
12 | #define _ASM_UACCESS_H | 12 | #define _ASM_UACCESS_H |
13 | 13 | ||
14 | #include <linux/kernel.h> | 14 | #include <linux/kernel.h> |
15 | #include <linux/errno.h> | ||
16 | #include <linux/thread_info.h> | ||
17 | #include <linux/string.h> | 15 | #include <linux/string.h> |
18 | #include <asm/asm-eva.h> | 16 | #include <asm/asm-eva.h> |
19 | #include <asm/extable.h> | 17 | #include <asm/extable.h> |
diff --git a/arch/mn10300/include/asm/uaccess.h b/arch/mn10300/include/asm/uaccess.h index 3e16850c4ccd..2da7b0fed4aa 100644 --- a/arch/mn10300/include/asm/uaccess.h +++ b/arch/mn10300/include/asm/uaccess.h | |||
@@ -14,10 +14,8 @@ | |||
14 | /* | 14 | /* |
15 | * User space memory access functions | 15 | * User space memory access functions |
16 | */ | 16 | */ |
17 | #include <linux/thread_info.h> | ||
18 | #include <linux/kernel.h> | 17 | #include <linux/kernel.h> |
19 | #include <asm/page.h> | 18 | #include <asm/page.h> |
20 | #include <asm/errno.h> | ||
21 | 19 | ||
22 | /* | 20 | /* |
23 | * The fs value determines whether argument validity checking should be | 21 | * The fs value determines whether argument validity checking should be |
diff --git a/arch/nios2/include/asm/uaccess.h b/arch/nios2/include/asm/uaccess.h index 07fc68c3e23c..198bbf15f644 100644 --- a/arch/nios2/include/asm/uaccess.h +++ b/arch/nios2/include/asm/uaccess.h | |||
@@ -13,8 +13,6 @@ | |||
13 | #ifndef _ASM_NIOS2_UACCESS_H | 13 | #ifndef _ASM_NIOS2_UACCESS_H |
14 | #define _ASM_NIOS2_UACCESS_H | 14 | #define _ASM_NIOS2_UACCESS_H |
15 | 15 | ||
16 | #include <linux/errno.h> | ||
17 | #include <linux/thread_info.h> | ||
18 | #include <linux/string.h> | 16 | #include <linux/string.h> |
19 | 17 | ||
20 | #include <asm/page.h> | 18 | #include <asm/page.h> |
diff --git a/arch/openrisc/include/asm/uaccess.h b/arch/openrisc/include/asm/uaccess.h index 6f88cf8bd112..0b0f60444b76 100644 --- a/arch/openrisc/include/asm/uaccess.h +++ b/arch/openrisc/include/asm/uaccess.h | |||
@@ -22,8 +22,6 @@ | |||
22 | /* | 22 | /* |
23 | * User space memory access functions | 23 | * User space memory access functions |
24 | */ | 24 | */ |
25 | #include <linux/errno.h> | ||
26 | #include <linux/thread_info.h> | ||
27 | #include <linux/prefetch.h> | 25 | #include <linux/prefetch.h> |
28 | #include <linux/string.h> | 26 | #include <linux/string.h> |
29 | #include <asm/page.h> | 27 | #include <asm/page.h> |
diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h index 598b52e5aa03..a0b461336b6a 100644 --- a/arch/parisc/include/asm/uaccess.h +++ b/arch/parisc/include/asm/uaccess.h | |||
@@ -6,12 +6,10 @@ | |||
6 | */ | 6 | */ |
7 | #include <asm/page.h> | 7 | #include <asm/page.h> |
8 | #include <asm/cache.h> | 8 | #include <asm/cache.h> |
9 | #include <asm/errno.h> | ||
10 | #include <asm-generic/uaccess-unaligned.h> | 9 | #include <asm-generic/uaccess-unaligned.h> |
11 | 10 | ||
12 | #include <linux/bug.h> | 11 | #include <linux/bug.h> |
13 | #include <linux/string.h> | 12 | #include <linux/string.h> |
14 | #include <linux/thread_info.h> | ||
15 | 13 | ||
16 | #define KERNEL_DS ((mm_segment_t){0}) | 14 | #define KERNEL_DS ((mm_segment_t){0}) |
17 | #define USER_DS ((mm_segment_t){1}) | 15 | #define USER_DS ((mm_segment_t){1}) |
diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h index 81307633c33f..2ec70aa1cc5d 100644 --- a/arch/powerpc/include/asm/uaccess.h +++ b/arch/powerpc/include/asm/uaccess.h | |||
@@ -4,8 +4,6 @@ | |||
4 | #ifdef __KERNEL__ | 4 | #ifdef __KERNEL__ |
5 | #ifndef __ASSEMBLY__ | 5 | #ifndef __ASSEMBLY__ |
6 | 6 | ||
7 | #include <linux/sched.h> | ||
8 | #include <linux/errno.h> | ||
9 | #include <asm/asm-compat.h> | 7 | #include <asm/asm-compat.h> |
10 | #include <asm/ppc_asm.h> | 8 | #include <asm/ppc_asm.h> |
11 | #include <asm/processor.h> | 9 | #include <asm/processor.h> |
diff --git a/arch/s390/include/asm/uaccess.h b/arch/s390/include/asm/uaccess.h index 0e1f515d239b..9e9a5e8d6cf6 100644 --- a/arch/s390/include/asm/uaccess.h +++ b/arch/s390/include/asm/uaccess.h | |||
@@ -12,8 +12,6 @@ | |||
12 | /* | 12 | /* |
13 | * User space memory access functions | 13 | * User space memory access functions |
14 | */ | 14 | */ |
15 | #include <linux/sched.h> | ||
16 | #include <linux/errno.h> | ||
17 | #include <asm/processor.h> | 15 | #include <asm/processor.h> |
18 | #include <asm/ctl_reg.h> | 16 | #include <asm/ctl_reg.h> |
19 | 17 | ||
diff --git a/arch/score/include/asm/uaccess.h b/arch/score/include/asm/uaccess.h index 51914244e867..7a6c6982420a 100644 --- a/arch/score/include/asm/uaccess.h +++ b/arch/score/include/asm/uaccess.h | |||
@@ -2,8 +2,6 @@ | |||
2 | #define __SCORE_UACCESS_H | 2 | #define __SCORE_UACCESS_H |
3 | 3 | ||
4 | #include <linux/kernel.h> | 4 | #include <linux/kernel.h> |
5 | #include <linux/errno.h> | ||
6 | #include <linux/thread_info.h> | ||
7 | #include <asm/extable.h> | 5 | #include <asm/extable.h> |
8 | 6 | ||
9 | #define get_ds() (KERNEL_DS) | 7 | #define get_ds() (KERNEL_DS) |
diff --git a/arch/sh/include/asm/uaccess.h b/arch/sh/include/asm/uaccess.h index 6b66d67c21d2..89a28dfbabfa 100644 --- a/arch/sh/include/asm/uaccess.h +++ b/arch/sh/include/asm/uaccess.h | |||
@@ -1,8 +1,6 @@ | |||
1 | #ifndef __ASM_SH_UACCESS_H | 1 | #ifndef __ASM_SH_UACCESS_H |
2 | #define __ASM_SH_UACCESS_H | 2 | #define __ASM_SH_UACCESS_H |
3 | 3 | ||
4 | #include <linux/errno.h> | ||
5 | #include <linux/sched.h> | ||
6 | #include <asm/segment.h> | 4 | #include <asm/segment.h> |
7 | 5 | ||
8 | #define __addr_ok(addr) \ | 6 | #define __addr_ok(addr) \ |
diff --git a/arch/sparc/include/asm/uaccess_32.h b/arch/sparc/include/asm/uaccess_32.h index d8857f5fafad..b10f7d626f0e 100644 --- a/arch/sparc/include/asm/uaccess_32.h +++ b/arch/sparc/include/asm/uaccess_32.h | |||
@@ -9,9 +9,7 @@ | |||
9 | 9 | ||
10 | #ifdef __KERNEL__ | 10 | #ifdef __KERNEL__ |
11 | #include <linux/compiler.h> | 11 | #include <linux/compiler.h> |
12 | #include <linux/sched.h> | ||
13 | #include <linux/string.h> | 12 | #include <linux/string.h> |
14 | #include <linux/errno.h> | ||
15 | #endif | 13 | #endif |
16 | 14 | ||
17 | #ifndef __ASSEMBLY__ | 15 | #ifndef __ASSEMBLY__ |
diff --git a/arch/sparc/include/asm/uaccess_64.h b/arch/sparc/include/asm/uaccess_64.h index 619223dc9022..d76362cad80f 100644 --- a/arch/sparc/include/asm/uaccess_64.h +++ b/arch/sparc/include/asm/uaccess_64.h | |||
@@ -6,10 +6,8 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #ifdef __KERNEL__ | 8 | #ifdef __KERNEL__ |
9 | #include <linux/errno.h> | ||
10 | #include <linux/compiler.h> | 9 | #include <linux/compiler.h> |
11 | #include <linux/string.h> | 10 | #include <linux/string.h> |
12 | #include <linux/thread_info.h> | ||
13 | #include <asm/asi.h> | 11 | #include <asm/asi.h> |
14 | #include <asm/spitfire.h> | 12 | #include <asm/spitfire.h> |
15 | #include <asm-generic/uaccess-unaligned.h> | 13 | #include <asm-generic/uaccess-unaligned.h> |
diff --git a/arch/tile/include/asm/uaccess.h b/arch/tile/include/asm/uaccess.h index 730073326b46..14ea3d1ca2c7 100644 --- a/arch/tile/include/asm/uaccess.h +++ b/arch/tile/include/asm/uaccess.h | |||
@@ -18,7 +18,6 @@ | |||
18 | /* | 18 | /* |
19 | * User space memory access functions | 19 | * User space memory access functions |
20 | */ | 20 | */ |
21 | #include <linux/sched.h> | ||
22 | #include <linux/mm.h> | 21 | #include <linux/mm.h> |
23 | #include <asm-generic/uaccess-unaligned.h> | 22 | #include <asm-generic/uaccess-unaligned.h> |
24 | #include <asm/processor.h> | 23 | #include <asm/processor.h> |
diff --git a/arch/um/include/asm/uaccess.h b/arch/um/include/asm/uaccess.h index 3705620ca298..076bdcb0c2ad 100644 --- a/arch/um/include/asm/uaccess.h +++ b/arch/um/include/asm/uaccess.h | |||
@@ -7,7 +7,6 @@ | |||
7 | #ifndef __UM_UACCESS_H | 7 | #ifndef __UM_UACCESS_H |
8 | #define __UM_UACCESS_H | 8 | #define __UM_UACCESS_H |
9 | 9 | ||
10 | #include <asm/thread_info.h> | ||
11 | #include <asm/elf.h> | 10 | #include <asm/elf.h> |
12 | 11 | ||
13 | #define __under_task_size(addr, size) \ | 12 | #define __under_task_size(addr, size) \ |
diff --git a/arch/unicore32/include/asm/uaccess.h b/arch/unicore32/include/asm/uaccess.h index 897e11ad8124..1622f37a0514 100644 --- a/arch/unicore32/include/asm/uaccess.h +++ b/arch/unicore32/include/asm/uaccess.h | |||
@@ -12,9 +12,6 @@ | |||
12 | #ifndef __UNICORE_UACCESS_H__ | 12 | #ifndef __UNICORE_UACCESS_H__ |
13 | #define __UNICORE_UACCESS_H__ | 13 | #define __UNICORE_UACCESS_H__ |
14 | 14 | ||
15 | #include <linux/thread_info.h> | ||
16 | #include <linux/errno.h> | ||
17 | |||
18 | #include <asm/memory.h> | 15 | #include <asm/memory.h> |
19 | 16 | ||
20 | #define __copy_from_user __copy_from_user | 17 | #define __copy_from_user __copy_from_user |
diff --git a/arch/x86/include/asm/uaccess.h b/arch/x86/include/asm/uaccess.h index 8dffb8b1d328..0522d88a7f90 100644 --- a/arch/x86/include/asm/uaccess.h +++ b/arch/x86/include/asm/uaccess.h | |||
@@ -3,10 +3,8 @@ | |||
3 | /* | 3 | /* |
4 | * User space memory access functions | 4 | * User space memory access functions |
5 | */ | 5 | */ |
6 | #include <linux/errno.h> | ||
7 | #include <linux/compiler.h> | 6 | #include <linux/compiler.h> |
8 | #include <linux/kasan-checks.h> | 7 | #include <linux/kasan-checks.h> |
9 | #include <linux/thread_info.h> | ||
10 | #include <linux/string.h> | 8 | #include <linux/string.h> |
11 | #include <asm/asm.h> | 9 | #include <asm/asm.h> |
12 | #include <asm/page.h> | 10 | #include <asm/page.h> |
diff --git a/arch/x86/include/asm/uaccess_32.h b/arch/x86/include/asm/uaccess_32.h index 7d3bdd1ed697..5268ecceea96 100644 --- a/arch/x86/include/asm/uaccess_32.h +++ b/arch/x86/include/asm/uaccess_32.h | |||
@@ -4,8 +4,6 @@ | |||
4 | /* | 4 | /* |
5 | * User space memory access functions | 5 | * User space memory access functions |
6 | */ | 6 | */ |
7 | #include <linux/errno.h> | ||
8 | #include <linux/thread_info.h> | ||
9 | #include <linux/string.h> | 7 | #include <linux/string.h> |
10 | #include <asm/asm.h> | 8 | #include <asm/asm.h> |
11 | #include <asm/page.h> | 9 | #include <asm/page.h> |
diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uaccess_64.h index 673059a109fe..8ddadd93639e 100644 --- a/arch/x86/include/asm/uaccess_64.h +++ b/arch/x86/include/asm/uaccess_64.h | |||
@@ -5,7 +5,6 @@ | |||
5 | * User space memory access functions | 5 | * User space memory access functions |
6 | */ | 6 | */ |
7 | #include <linux/compiler.h> | 7 | #include <linux/compiler.h> |
8 | #include <linux/errno.h> | ||
9 | #include <linux/lockdep.h> | 8 | #include <linux/lockdep.h> |
10 | #include <linux/kasan-checks.h> | 9 | #include <linux/kasan-checks.h> |
11 | #include <asm/alternative.h> | 10 | #include <asm/alternative.h> |
diff --git a/arch/xtensa/include/asm/uaccess.h b/arch/xtensa/include/asm/uaccess.h index dd6b13649aad..bd8861c811ef 100644 --- a/arch/xtensa/include/asm/uaccess.h +++ b/arch/xtensa/include/asm/uaccess.h | |||
@@ -16,12 +16,9 @@ | |||
16 | #ifndef _XTENSA_UACCESS_H | 16 | #ifndef _XTENSA_UACCESS_H |
17 | #define _XTENSA_UACCESS_H | 17 | #define _XTENSA_UACCESS_H |
18 | 18 | ||
19 | #include <linux/errno.h> | ||
20 | #include <linux/prefetch.h> | 19 | #include <linux/prefetch.h> |
21 | #include <asm/types.h> | 20 | #include <asm/types.h> |
22 | 21 | ||
23 | #include <linux/sched.h> | ||
24 | |||
25 | /* | 22 | /* |
26 | * The fs value determines whether argument validity checking should | 23 | * The fs value determines whether argument validity checking should |
27 | * be performed or not. If get_fs() == USER_DS, checking is | 24 | * be performed or not. If get_fs() == USER_DS, checking is |
diff --git a/include/asm-generic/uaccess.h b/include/asm-generic/uaccess.h index d7c17bfd4601..d20955e495b3 100644 --- a/include/asm-generic/uaccess.h +++ b/include/asm-generic/uaccess.h | |||
@@ -6,7 +6,6 @@ | |||
6 | * on any machine that has kernel and user data in the same | 6 | * on any machine that has kernel and user data in the same |
7 | * address space, e.g. all NOMMU machines. | 7 | * address space, e.g. all NOMMU machines. |
8 | */ | 8 | */ |
9 | #include <linux/sched.h> | ||
10 | #include <linux/string.h> | 9 | #include <linux/string.h> |
11 | 10 | ||
12 | #include <asm/segment.h> | 11 | #include <asm/segment.h> |
diff --git a/include/linux/uaccess.h b/include/linux/uaccess.h index b660f37beaf5..b786ca2419b4 100644 --- a/include/linux/uaccess.h +++ b/include/linux/uaccess.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __LINUX_UACCESS_H__ | 2 | #define __LINUX_UACCESS_H__ |
3 | 3 | ||
4 | #include <linux/sched.h> | 4 | #include <linux/sched.h> |
5 | #include <linux/thread_info.h> | ||
5 | 6 | ||
6 | #define VERIFY_READ 0 | 7 | #define VERIFY_READ 0 |
7 | #define VERIFY_WRITE 1 | 8 | #define VERIFY_WRITE 1 |