summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2017-12-12 11:53:26 +0000
committerWill Deacon <will.deacon@arm.com>2017-12-12 11:53:26 +0000
commit0e17cada2a5b4dc847082e1db0e3f84599ffd436 (patch)
treeaad8e043086513adb01fec5556ab0aa8ebe7d294 /arch
parent932b50c7c1c65e6f23002e075b97ee083c4a9e71 (diff)
downloadlinux-stable-0e17cada2a5b4dc847082e1db0e3f84599ffd436.tar.gz
linux-stable-0e17cada2a5b4dc847082e1db0e3f84599ffd436.tar.bz2
linux-stable-0e17cada2a5b4dc847082e1db0e3f84599ffd436.zip
arm64: hw_breakpoint: Use linux/uaccess.h instead of asm/uaccess.h
The only inclusion of asm/uaccess.h should be by linux/uaccess.h. All other headers should use the latter. Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm64/kernel/hw_breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/hw_breakpoint.c b/arch/arm64/kernel/hw_breakpoint.c
index 749f81779420..74bb56f656ef 100644
--- a/arch/arm64/kernel/hw_breakpoint.c
+++ b/arch/arm64/kernel/hw_breakpoint.c
@@ -28,6 +28,7 @@
#include <linux/perf_event.h>
#include <linux/ptrace.h>
#include <linux/smp.h>
+#include <linux/uaccess.h>
#include <asm/compat.h>
#include <asm/current.h>
@@ -36,7 +37,6 @@
#include <asm/traps.h>
#include <asm/cputype.h>
#include <asm/system_misc.h>
-#include <asm/uaccess.h>
/* Breakpoint currently in use for each BRP. */
static DEFINE_PER_CPU(struct perf_event *, bp_on_reg[ARM_MAX_BRP]);