summaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2016-06-09 11:21:20 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-06-22 19:55:11 +0100
commit9f85eae622cd9b63dc44b7dcfa958b3881a09cbb (patch)
tree2c853d55cc5ae57338d5296115f8719247ad88f4 /arch/arm/include
parent5fa9da5043a81b9eea5d4522d1371455bf64894a (diff)
downloadblackbird-op-linux-9f85eae622cd9b63dc44b7dcfa958b3881a09cbb.tar.gz
blackbird-op-linux-9f85eae622cd9b63dc44b7dcfa958b3881a09cbb.zip
ARM: 8580/1: Remove orphaned __addr_ok() definition
Since commit 8c56cc8be5b3 ("ARM: 7449/1: use generic strnlen_user and strncpy_from_user functions"), the definition of __addr_ok() has been languishing unused; eradicate the sucker. Cc: Russell King <linux@armlinux.org.uk> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/include')
-rw-r--r--arch/arm/include/asm/uaccess.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h
index 35c9db857ebe..7badc3e55109 100644
--- a/arch/arm/include/asm/uaccess.h
+++ b/arch/arm/include/asm/uaccess.h
@@ -104,14 +104,6 @@ static inline void set_fs(mm_segment_t fs)
#define segment_eq(a, b) ((a) == (b))
-#define __addr_ok(addr) ({ \
- unsigned long flag; \
- __asm__("cmp %2, %0; movlo %0, #0" \
- : "=&r" (flag) \
- : "0" (current_thread_info()->addr_limit), "r" (addr) \
- : "cc"); \
- (flag == 0); })
-
/* We use 33-bit arithmetic here... */
#define __range_ok(addr, size) ({ \
unsigned long flag, roksum; \
OpenPOWER on IntegriCloud