summaryrefslogtreecommitdiffstats
path: root/arch/openrisc
diff options
context:
space:
mode:
authorStafford Horne <shorne@gmail.com>2020-08-04 02:57:14 +0200
committerStafford Horne <shorne@gmail.com>2020-08-09 00:57:09 +0200
commitaac9a9b555b9d84295d2d3637a2d83971c474a1e (patch)
tree0cb09c6f968532f91179ea6b35397efbc5cb730b /arch/openrisc
parentopenrisc: uaccess: Use static inline function in access_ok (diff)
downloadlinux-aac9a9b555b9d84295d2d3637a2d83971c474a1e.tar.xz
linux-aac9a9b555b9d84295d2d3637a2d83971c474a1e.zip
openrisc: uaccess: Remove unused macro __addr_ok
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>
Diffstat (limited to 'arch/openrisc')
-rw-r--r--arch/openrisc/include/asm/uaccess.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/openrisc/include/asm/uaccess.h b/arch/openrisc/include/asm/uaccess.h
index 4b59dc9ad300..85a55359b244 100644
--- 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)); \