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:
ab2e1b8
)
arm64: Remove orphaned __addr_ok() definition
author
Robin Murphy
<
[email protected]
>
Tue, 24 May 2016 17:55:40 +0000
(18:55 +0100)
committer
Will Deacon
<
[email protected]
>
Tue, 31 May 2016 12:11:11 +0000
(13:11 +0100)
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 <
[email protected]
>
Signed-off-by: Robin Murphy <
[email protected]
>
Signed-off-by: Will Deacon <
[email protected]
>
arch/arm64/include/asm/uaccess.h
patch
|
blob
|
history
diff --git
a/arch/arm64/include/asm/uaccess.h
b/arch/arm64/include/asm/uaccess.h
index 0685d74572af788b05d44658c7dba7e4fc3742ba..9e397a5427565a1b35d1e8bdd170d3a88ac3d457 100644
(file)
--- a/
arch/arm64/include/asm/uaccess.h
+++ b/
arch/arm64/include/asm/uaccess.h
@@
-80,19
+80,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.