From: Julien Grall Date: Tue, 23 May 2017 17:03:36 +0000 (+0100) Subject: xen/arm: Remove unused helpers access_ok and array_access_ok X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2083 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f4a27a000d03e121eb1a36c485049a820c395539;p=xen.git 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 Reviewed-by: Stefano Stabellini --- diff --git a/xen/include/asm-arm/guest_access.h b/xen/include/asm-arm/guest_access.h index 421bca5f36..251e935597 100644 --- a/xen/include/asm-arm/guest_access.h +++ b/xen/include/asm-arm/guest_access.h @@ -4,13 +4,6 @@ #include #include -/* 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);