Commit af1d5b37 authored by Al Viro's avatar Al Viro

uaccess: drop duplicate includes from asm/uaccess.h

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 5e6039d8
#ifndef __ALPHA_UACCESS_H #ifndef __ALPHA_UACCESS_H
#define __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 * The fs value determines whether argument validity checking should be
* performed or not. If get_fs() == USER_DS, checking is performed, with * performed or not. If get_fs() == USER_DS, checking is performed, with
......
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#ifndef _ASM_ARC_UACCESS_H #ifndef _ASM_ARC_UACCESS_H
#define _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 */ #include <linux/string.h> /* for generic string functions */
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
* User space memory access functions * User space memory access functions
*/ */
#include <linux/string.h> #include <linux/string.h>
#include <linux/thread_info.h>
#include <asm/errno.h>
#include <asm/memory.h> #include <asm/memory.h>
#include <asm/domain.h> #include <asm/domain.h>
#include <asm/unified.h> #include <asm/unified.h>
......
...@@ -28,11 +28,9 @@ ...@@ -28,11 +28,9 @@
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/kasan-checks.h> #include <linux/kasan-checks.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/thread_info.h>
#include <asm/cpufeature.h> #include <asm/cpufeature.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/errno.h>
#include <asm/memory.h> #include <asm/memory.h>
#include <asm/compiler.h> #include <asm/compiler.h>
......
...@@ -8,9 +8,6 @@ ...@@ -8,9 +8,6 @@
#ifndef __ASM_AVR32_UACCESS_H #ifndef __ASM_AVR32_UACCESS_H
#define __ASM_AVR32_UACCESS_H #define __ASM_AVR32_UACCESS_H
#include <linux/errno.h>
#include <linux/sched.h>
typedef struct { typedef struct {
unsigned int is_user_space; unsigned int is_user_space;
} mm_segment_t; } mm_segment_t;
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/sched.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/string.h> #include <linux/string.h>
......
...@@ -16,8 +16,6 @@ ...@@ -16,8 +16,6 @@
#define _CRIS_UACCESS_H #define _CRIS_UACCESS_H
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <linux/sched.h>
#include <linux/errno.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/page.h> #include <asm/page.h>
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/sched.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/sections.h> #include <asm/sections.h>
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/sched.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <asm/segment.h> #include <asm/segment.h>
#include <asm/sections.h> #include <asm/sections.h>
......
...@@ -33,8 +33,6 @@ ...@@ -33,8 +33,6 @@
*/ */
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/page-flags.h> #include <linux/page-flags.h>
#include <linux/mm.h> #include <linux/mm.h>
......
...@@ -11,8 +11,6 @@ ...@@ -11,8 +11,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/errno.h>
#include <linux/thread_info.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/setup.h> #include <asm/setup.h>
......
...@@ -5,9 +5,7 @@ ...@@ -5,9 +5,7 @@
* User space memory access functions * User space memory access functions
*/ */
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/sched.h>
#include <asm/segment.h> #include <asm/segment.h>
/* We let the MMU do all checking */ /* We let the MMU do all checking */
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/sched.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/string.h> #include <linux/string.h>
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/sched.h>
/* /*
* The fs value determines whether argument validity checking should be * The fs value determines whether argument validity checking should be
......
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/sched.h> /* RLIMIT_FSIZE */
#include <linux/mm.h> #include <linux/mm.h>
#include <asm/mmu.h> #include <asm/mmu.h>
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
#define _ASM_UACCESS_H #define _ASM_UACCESS_H
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/thread_info.h>
#include <linux/string.h> #include <linux/string.h>
#include <asm/asm-eva.h> #include <asm/asm-eva.h>
#include <asm/extable.h> #include <asm/extable.h>
......
...@@ -14,10 +14,8 @@ ...@@ -14,10 +14,8 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/thread_info.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <asm/page.h> #include <asm/page.h>
#include <asm/errno.h>
/* /*
* The fs value determines whether argument validity checking should be * The fs value determines whether argument validity checking should be
......
...@@ -13,8 +13,6 @@ ...@@ -13,8 +13,6 @@
#ifndef _ASM_NIOS2_UACCESS_H #ifndef _ASM_NIOS2_UACCESS_H
#define _ASM_NIOS2_UACCESS_H #define _ASM_NIOS2_UACCESS_H
#include <linux/errno.h>
#include <linux/thread_info.h>
#include <linux/string.h> #include <linux/string.h>
#include <asm/page.h> #include <asm/page.h>
......
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/errno.h>
#include <linux/thread_info.h>
#include <linux/prefetch.h> #include <linux/prefetch.h>
#include <linux/string.h> #include <linux/string.h>
#include <asm/page.h> #include <asm/page.h>
......
...@@ -6,12 +6,10 @@ ...@@ -6,12 +6,10 @@
*/ */
#include <asm/page.h> #include <asm/page.h>
#include <asm/cache.h> #include <asm/cache.h>
#include <asm/errno.h>
#include <asm-generic/uaccess-unaligned.h> #include <asm-generic/uaccess-unaligned.h>
#include <linux/bug.h> #include <linux/bug.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/thread_info.h>
#define KERNEL_DS ((mm_segment_t){0}) #define KERNEL_DS ((mm_segment_t){0})
#define USER_DS ((mm_segment_t){1}) #define USER_DS ((mm_segment_t){1})
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#include <linux/sched.h>
#include <linux/errno.h>
#include <asm/asm-compat.h> #include <asm/asm-compat.h>
#include <asm/ppc_asm.h> #include <asm/ppc_asm.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/sched.h>
#include <linux/errno.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <asm/ctl_reg.h> #include <asm/ctl_reg.h>
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
#define __SCORE_UACCESS_H #define __SCORE_UACCESS_H
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/thread_info.h>
#include <asm/extable.h> #include <asm/extable.h>
#define get_ds() (KERNEL_DS) #define get_ds() (KERNEL_DS)
......
#ifndef __ASM_SH_UACCESS_H #ifndef __ASM_SH_UACCESS_H
#define __ASM_SH_UACCESS_H #define __ASM_SH_UACCESS_H
#include <linux/errno.h>
#include <linux/sched.h>
#include <asm/segment.h> #include <asm/segment.h>
#define __addr_ok(addr) \ #define __addr_ok(addr) \
......
...@@ -9,9 +9,7 @@ ...@@ -9,9 +9,7 @@
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/sched.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/errno.h>
#endif #endif
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
......
...@@ -6,10 +6,8 @@ ...@@ -6,10 +6,8 @@
*/ */
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/errno.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/string.h> #include <linux/string.h>
#include <linux/thread_info.h>
#include <asm/asi.h> #include <asm/asi.h>
#include <asm/spitfire.h> #include <asm/spitfire.h>
#include <asm-generic/uaccess-unaligned.h> #include <asm-generic/uaccess-unaligned.h>
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/sched.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <asm-generic/uaccess-unaligned.h> #include <asm-generic/uaccess-unaligned.h>
#include <asm/processor.h> #include <asm/processor.h>
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
#ifndef __UM_UACCESS_H #ifndef __UM_UACCESS_H
#define __UM_UACCESS_H #define __UM_UACCESS_H
#include <asm/thread_info.h>
#include <asm/elf.h> #include <asm/elf.h>
#define __under_task_size(addr, size) \ #define __under_task_size(addr, size) \
......
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
#ifndef __UNICORE_UACCESS_H__ #ifndef __UNICORE_UACCESS_H__
#define __UNICORE_UACCESS_H__ #define __UNICORE_UACCESS_H__
#include <linux/thread_info.h>
#include <linux/errno.h>
#include <asm/memory.h> #include <asm/memory.h>
#define __copy_from_user __copy_from_user #define __copy_from_user __copy_from_user
......
...@@ -3,10 +3,8 @@ ...@@ -3,10 +3,8 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/errno.h>
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/kasan-checks.h> #include <linux/kasan-checks.h>
#include <linux/thread_info.h>
#include <linux/string.h> #include <linux/string.h>
#include <asm/asm.h> #include <asm/asm.h>
#include <asm/page.h> #include <asm/page.h>
......
...@@ -4,8 +4,6 @@ ...@@ -4,8 +4,6 @@
/* /*
* User space memory access functions * User space memory access functions
*/ */
#include <linux/errno.h>
#include <linux/thread_info.h>
#include <linux/string.h> #include <linux/string.h>
#include <asm/asm.h> #include <asm/asm.h>
#include <asm/page.h> #include <asm/page.h>
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
* User space memory access functions * User space memory access functions
*/ */
#include <linux/compiler.h> #include <linux/compiler.h>
#include <linux/errno.h>
#include <linux/lockdep.h> #include <linux/lockdep.h>
#include <linux/kasan-checks.h> #include <linux/kasan-checks.h>
#include <asm/alternative.h> #include <asm/alternative.h>
......
...@@ -16,12 +16,9 @@ ...@@ -16,12 +16,9 @@
#ifndef _XTENSA_UACCESS_H #ifndef _XTENSA_UACCESS_H
#define _XTENSA_UACCESS_H #define _XTENSA_UACCESS_H
#include <linux/errno.h>
#include <linux/prefetch.h> #include <linux/prefetch.h>
#include <asm/types.h> #include <asm/types.h>
#include <linux/sched.h>
/* /*
* The fs value determines whether argument validity checking should * The fs value determines whether argument validity checking should
* be performed or not. If get_fs() == USER_DS, checking is * be performed or not. If get_fs() == USER_DS, checking is
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
* on any machine that has kernel and user data in the same * on any machine that has kernel and user data in the same
* address space, e.g. all NOMMU machines. * address space, e.g. all NOMMU machines.
*/ */
#include <linux/sched.h>
#include <linux/string.h> #include <linux/string.h>
#include <asm/segment.h> #include <asm/segment.h>
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define __LINUX_UACCESS_H__ #define __LINUX_UACCESS_H__
#include <linux/sched.h> #include <linux/sched.h>
#include <linux/thread_info.h>
#define VERIFY_READ 0 #define VERIFY_READ 0
#define VERIFY_WRITE 1 #define VERIFY_WRITE 1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment