projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af84b16
)
openrisc: uaccess: Remove unused macro __addr_ok
author
Stafford Horne
<shorne@gmail.com>
Tue, 4 Aug 2020 00:57:14 +0000
(09:57 +0900)
committer
Stafford Horne
<shorne@gmail.com>
Sat, 8 Aug 2020 22:57:09 +0000
(07:57 +0900)
Since commit
b48b2c3e5043
("openrisc: use generic strnlen_user()
function") the macro __addr_ok is no longer used. It is safe to remove
so this patch removes it.
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/include/asm/uaccess.h
patch
|
blob
|
history
diff --git
a/arch/openrisc/include/asm/uaccess.h
b/arch/openrisc/include/asm/uaccess.h
index 4b59dc9ad3000f7d0cc34e69dd8c5e3bbca080e3..85a55359b2448ef557bb73a93cefbaa6bde8710e 100644
(file)
--- a/
arch/openrisc/include/asm/uaccess.h
+++ b/
arch/openrisc/include/asm/uaccess.h
@@
-55,9
+55,6
@@
static inline int __range_ok(unsigned long addr, unsigned long size)
return size <= fs && addr <= (fs - size);
}
-/* Ensure that addr is below task's addr_limit */
-#define __addr_ok(addr) ((unsigned long) addr < get_fs())
-
#define access_ok(addr, size) \
({ \
__range_ok((unsigned long)(addr), (size)); \