From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaeyong Yoo Subject: [PATCH v4 6/9] xen/arm: Fixing clear_guest_offset macro Date: Fri, 04 Oct 2013 13:44:02 +0900 Message-ID: <1380861845-23268-7-git-send-email-jaeyong.yoo@samsung.com> References: <1380861845-23268-1-git-send-email-jaeyong.yoo@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-reply-to: <1380861845-23268-1-git-send-email-jaeyong.yoo@samsung.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Jaeyong Yoo List-Id: xen-devel@lists.xenproject.org Fix the the broken macro 'clear_guest_offset' in arm. Signed-off-by: Jaeyong Yoo --- xen/include/asm-arm/guest_access.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/include/asm-arm/guest_access.h b/xen/include/asm-arm/guest_access.h index 34aae14..8ff088f 100644 --- a/xen/include/asm-arm/guest_access.h +++ b/xen/include/asm-arm/guest_access.h @@ -77,8 +77,9 @@ unsigned long raw_clear_guest(void *to, unsigned len); * Clear an array of objects in guest context via a guest handle, * specifying an offset into the guest array. */ -#define clear_guest_offset(hnd, off, ptr, nr) ({ \ - raw_clear_guest(_d+(off), nr); \ +#define clear_guest_offset(hnd, off, nr) ({ \ + void *_d = (hnd).p; \ + raw_clear_guest(_d+(off), nr); \ }) /* -- 1.8.1.2