Skip to content

Commit

Permalink
Replace <asm/uaccess.h> with <linux/uaccess.h> globally
Browse files Browse the repository at this point in the history
This was entirely automated, using the script by Al:

  PATT='^[[:blank:]]*#[[:blank:]]*include[[:blank:]]*<asm/uaccess.h>'
  sed -i -e "s!$PATT!#include <linux/uaccess.h>!" \
        $(git grep -l "$PATT"|grep -v ^include/linux/uaccess.h)

to do the replacement at the end of the merge window.

Requested-by: Al Viro <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
torvalds committed Dec 24, 2016
1 parent 1dd5c6b commit 7c0f6ba
Show file tree
Hide file tree
Showing 1,088 changed files with 1,088 additions and 1,088 deletions.
2 changes: 1 addition & 1 deletion arch/alpha/boot/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <linux/kernel.h>
#include <linux/slab.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>

#define memzero(s,n) memset ((s),0,(n))
#define puts srm_printk
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/bitops.h>

#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

volatile unsigned long irq_err_count;
DEFINE_PER_CPU(unsigned long, irq_pmi_count);
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/osf_sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#include <asm/fpu.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/sysinfo.h>
#include <asm/thread_info.h>
#include <asm/hwrpb.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <linux/rcupdate.h>

#include <asm/reg.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <asm/pgtable.h>
#include <asm/hwrpb.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/tracehook.h>
#include <linux/audit.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/pgtable.h>
#include <asm/fpu.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static struct notifier_block alpha_panic_block = {
INT_MAX /* try to do it first */
};

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/pgtable.h>
#include <asm/hwrpb.h>
#include <asm/dma.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/syscalls.h>
#include <linux/tracehook.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/sigcontext.h>
#include <asm/ucontext.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/srm_env.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <asm/console.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/machvec.h>

#define BASE_DIR "srm_environment" /* Subdir in /proc/ */
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/srmcons.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/tty_flip.h>

#include <asm/console.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>


static DEFINE_SPINLOCK(srmcons_callback_lock);
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <linux/profile.h>
#include <linux/irq_work.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <asm/hwrpb.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/ratelimit.h>

#include <asm/gentrap.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/unaligned.h>
#include <asm/sysinfo.h>
#include <asm/hwrpb.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/lib/csum_partial_copy.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include <linux/types.h>
#include <linux/string.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>


#define ldq_u(x,y) \
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/math-emu/math.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <linux/kernel.h>
#include <linux/sched.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>

#include "sfp-util.h"
#include <math-emu/soft-fp.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/alpha/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <linux/vmalloc.h>
#include <linux/gfp.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/pgtable.h>
#include <asm/pgalloc.h>
#include <asm/hwrpb.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/common/bL_switcher_dummy_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/bL_switcher.h>

static ssize_t bL_switcher_write(struct file *file, const char __user *buf,
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/kernel/swp_emulate.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <asm/opcodes.h>
#include <asm/system_info.h>
#include <asm/traps.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/*
* Error-checking SWP macros implemented using ldrex{b}/strex{b}
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/kvm/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define CREATE_TRACE_POINTS
#include "trace.h"

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/ptrace.h>
#include <asm/mman.h>
#include <asm/tlbflush.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/kvm/guest.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/vmalloc.h>
#include <linux/fs.h>
#include <asm/cputype.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/kvm.h>
#include <asm/kvm_emulate.h>
#include <asm/kvm_coproc.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-iop13xx/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/interrupt.h>
#include <linux/list.h>
#include <linux/sysctl.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/mach/irq.h>
#include <asm/irq.h>
#include <mach/hardware.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-ixp4xx/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <mach/udc.h>
#include <mach/hardware.h>
#include <mach/io.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/pgtable.h>
#include <asm/page.h>
#include <asm/irq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-rpc/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <asm/fiq.h>
#include <asm/irq.h>
#include <mach/hardware.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

#include <asm/mach/dma.h>
#include <asm/hardware/iomd.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-iop/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include <linux/sched_clock.h>
#include <mach/hardware.h>
#include <asm/irq.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/mach/irq.h>
#include <asm/mach/time.h>
#include <mach/time.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/include/asm/word-at-a-time.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef __ASM_WORD_AT_A_TIME_H
#define __ASM_WORD_AT_A_TIME_H

#include <asm/uaccess.h>
#include <linux/uaccess.h>

#ifndef __AARCH64EB__

Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/armv8_deprecated.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <asm/sysreg.h>
#include <asm/system_misc.h>
#include <asm/traps.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/cpufeature.h>

#define CREATE_TRACE_POINTS
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <asm/memory.h>
#include <asm/ptrace.h>
#include <asm/thread_info.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/unistd.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/probes/kprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <asm/debug-monitors.h>
#include <asm/system_misc.h>
#include <asm/insn.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/irq.h>
#include <asm/sections.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kernel/signal32.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <asm/esr.h>
#include <asm/fpsimd.h>
#include <asm/signal32.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/unistd.h>

struct compat_sigcontext {
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/kvm/guest.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include <linux/vmalloc.h>
#include <linux/fs.h>
#include <asm/cputype.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/kvm.h>
#include <asm/kvm_emulate.h>
#include <asm/kvm_coproc.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/lib/clear_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/
#include <linux/linkage.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>

.text

Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/lib/copy_from_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <linux/linkage.h>

#include <asm/cache.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/*
* Copy from user space to a kernel buffer (alignment handled by the hardware)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/lib/copy_in_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/linkage.h>

#include <asm/cache.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/*
* Copy from user space to user space (alignment handled by the hardware)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/lib/copy_to_user.S
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <linux/linkage.h>

#include <asm/cache.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/*
* Copy to user space from a kernel buffer (alignment handled by the hardware)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/mm/cache.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <asm/assembler.h>
#include <asm/cpufeature.h>
#include <asm/alternative.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/*
* flush_icache_range(start,end)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm64/xen/hypercall.S
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <xen/interface/xen.h>


Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/kernel/avr32_ksyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/module.h>

#include <asm/checksum.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/*
* GCC functions
Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <linux/notifier.h>

#include <asm/traps.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/ocd.h>
#include <asm/mmu_context.h>
#include <linux/kdebug.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <linux/unistd.h>
#include <linux/tracehook.h>

#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/ucontext.h>
#include <asm/syscalls.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/avr32/mm/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <asm/cacheflush.h>
#include <asm/cachectl.h>
#include <asm/processor.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/syscalls.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/kernel/bfin_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <asm/blackfin.h>
#include <asm/cacheflush.h>
#include <asm/dma.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/early_printk.h>

/*
Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/kernel/kgdb_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <linux/proc_fs.h>

#include <asm/current.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

#include <asm/blackfin.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/blackfin/kernel/module.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/kernel.h>
#include <asm/dma.h>
#include <asm/cacheflush.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/* Transfer the section to the L1 memory */
int
Expand Down
2 changes: 1 addition & 1 deletion arch/c6x/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <linux/initrd.h>

#include <asm/sections.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>

/*
* ZERO_PAGE is a special page that is used for zero-initialized
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/arch-v10/drivers/eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <linux/delay.h>
#include <linux/interrupt.h>
#include <linux/wait.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include "i2c.h"

#define D(x)
Expand Down
2 changes: 1 addition & 1 deletion arch/cris/arch-v10/drivers/sync_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <asm/dma.h>
#include <asm/io.h>
#include <arch/svinto.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/sync_serial.h>
#include <arch/io_interface_mux.h>

Expand Down
Loading

0 comments on commit 7c0f6ba

Please sign in to comment.