Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1406352

[PATCH 2/3] ARM: Remove orphaned __addr_ok() definition

From Robin Murphy <robin.murphy@arm.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] ARM: Remove orphaned __addr_ok() definition
Date 2016-05-24 20:10 +0200
Message-ID <rCoWf-6FE-55@gated-at.bofh.it> (permalink)
References <rCoWd-6FE-15@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 arch/arm/include/asm/uaccess.h | 8 --------
 1 file changed, 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; \
-- 
2.8.1.dirty

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/3] arm64: Remove orphaned __addr_ok() definition Robin Murphy <robin.murphy@arm.com> - 2016-05-24 20:10 +0200
  [PATCH 2/3] ARM: Remove orphaned __addr_ok() definition Robin Murphy <robin.murphy@arm.com> - 2016-05-24 20:10 +0200
  [PATCH 3/3] openrisc: Remove orphaned __addr_ok() definition Robin Murphy <robin.murphy@arm.com> - 2016-05-24 20:10 +0200

csiph-web