aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/include
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-05-24 18:55:40 +0100
committerWill Deacon <will.deacon@arm.com>2016-05-31 13:11:11 +0100
commitdb413b51c0d023b336634ffbf5eb29128245df8d (patch)
tree316ee2b1c74cb06f503b2a9c10d389cd7a590753 /arch/arm64/include
parentRevert "arm64: hugetlb: partial revert of 66b3923a1a0f" (diff)
downloadlinux-dev-db413b51c0d023b336634ffbf5eb29128245df8d.tar.xz
linux-dev-db413b51c0d023b336634ffbf5eb29128245df8d.zip
arm64: Remove orphaned __addr_ok() definition
Since commit 12a0ef7b0ac3 ("arm64: use generic strnlen_user and strncpy_from_user functions"), the definition of __addr_ok() has been languishing unused; eradicate the sucker. CC: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to '')
-rw-r--r--arch/arm64/include/asm/uaccess.h13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/arm64/include/asm/uaccess.h b/arch/arm64/include/asm/uaccess.h
index 0685d74572af..9e397a542756 100644
--- a/arch/arm64/include/asm/uaccess.h
+++ b/arch/arm64/include/asm/uaccess.h
@@ -81,19 +81,6 @@ static inline void set_fs(mm_segment_t fs)
#define segment_eq(a, b) ((a) == (b))
/*
- * Return 1 if addr < current->addr_limit, 0 otherwise.
- */
-#define __addr_ok(addr) \
-({ \
- unsigned long flag; \
- asm("cmp %1, %0; cset %0, lo" \
- : "=&r" (flag) \
- : "r" (addr), "0" (current_thread_info()->addr_limit) \
- : "cc"); \
- flag; \
-})
-
-/*
* Test whether a block of memory is a valid user space address.
* Returns 1 if the range is valid, 0 otherwise.
*