projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fa9da5
)
ARM: 8580/1: Remove orphaned __addr_ok() definition
author
Robin Murphy
<
[email protected]
>
Thu, 9 Jun 2016 10:21:20 +0000
(11:21 +0100)
committer
Russell King
<
[email protected]
>
Wed, 22 Jun 2016 18:55:11 +0000
(19:55 +0100)
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 <
[email protected]
>
Signed-off-by: Robin Murphy <
[email protected]
>
Signed-off-by: Russell King <
[email protected]
>
arch/arm/include/asm/uaccess.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/uaccess.h
b/arch/arm/include/asm/uaccess.h
index 35c9db857ebe9c7d53715ec42518a6e9fbe1dc6e..7badc3e55109baaaf3a252ce168ce9266de2b97f 100644
(file)
--- 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; \