[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] xen/arm: Remove unused helpers access_ok and array_access_ok



commit f4a27a000d03e121eb1a36c485049a820c395539
Author:     Julien Grall <julien.grall@xxxxxxx>
AuthorDate: Tue May 23 18:03:36 2017 +0100
Commit:     Stefano Stabellini <sstabellini@xxxxxxxxxx>
CommitDate: Tue Jun 6 11:53:03 2017 -0700

    xen/arm: Remove unused helpers access_ok and array_access_ok
    
    Both helpers access_ok and array_access_ok are not used on ARM. Remove
    them.
    
    Signed-off-by: Julien Grall <julien.grall@xxxxxxx>
    Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
---
 xen/include/asm-arm/guest_access.h | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/xen/include/asm-arm/guest_access.h 
b/xen/include/asm-arm/guest_access.h
index 421bca5..251e935 100644
--- a/xen/include/asm-arm/guest_access.h
+++ b/xen/include/asm-arm/guest_access.h
@@ -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);
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.