]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
xen/arm: Remove unused helpers access_ok and array_access_ok
authorJulien Grall <julien.grall@arm.com>
Tue, 23 May 2017 17:03:36 +0000 (18:03 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 6 Jun 2017 18:53:03 +0000 (11:53 -0700)
Both helpers access_ok and array_access_ok are not used on ARM. Remove
them.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/guest_access.h

index 421bca5f36a3e3c1b9cb29f3ab3c51cafbd9196e..251e93559749e40caa277eb7568ed556d2de524e 100644 (file)
@@ -4,13 +4,6 @@
 #include <xen/guest_access.h>
 #include <xen/errno.h>
 
-/* Guests have their own comlete address space */
-#define access_ok(addr,size) (1)
-
-#define array_access_ok(addr,count,size) \
-    (likely((count) < (~0UL / (size))) && \
-     access_ok(addr, 0 + (count) * (size)))
-
 unsigned long raw_copy_to_guest(void *to, const void *from, unsigned len);
 unsigned long raw_copy_to_guest_flush_dcache(void *to, const void *from,
                                              unsigned len);